com.sun.sgs.example.hack.server.level

Class SimpleConnector

    • Constructor Detail

      • SimpleConnector

        public SimpleConnector(Level level1,
                       int level1X,
                       int level1Y,
                       Level level2,
                       int level2X,
                       int level2Y)
        Creates an instance of SimpleConnector.
        Parameters:
        level1 - a level
        level1X - the x-coord on the first level
        level1Y - the y-coord on the first level
        level2 - another level
        level2X - the x-coord on the second level
        level2Y - the y-coord on the second level
    • Method Detail

      • enteredConnection

        public boolean enteredConnection(CharacterManager mgr)
        Transitions the given character to the other point connected to their current location.
        Specified by:
        enteredConnection in interface Connector
        Parameters:
        mgr - the character's manager
      • handleEntered

        protected void handleEntered(CharacterManager mgr)
        Figures out which end to send the character to, based on which end they're on right now, and moves the character.
        Parameters:
        mgr - the character's manager

Copyright © 2013. All Rights Reserved.