Class EasyLevelMapping

  • All Implemented Interfaces:

    public class EasyLevelMapping
    extends java.lang.Object
    implements LevelMapping
    This is a simple mapping that assumes no translation and no scaling. Thus the same coordinates in different level are related to each other.
    1.0, 21.05.2008
    Ralf Duckstein
    • Constructor Detail

      • EasyLevelMapping

        public EasyLevelMapping()
    • Method Detail

      • getMapping

        public LevelRelation getMapping​(GameData data,
                                        int fromLevel,
                                        int toLevel)
        Description copied from interface: LevelMapping
        Returns a mapping that maps coordinates of fromLevel to coordinates of toLevel or null if no such mapping can be found.
        Specified by:
        getMapping in interface LevelMapping