Class EventMoveToCell


  • public class EventMoveToCell
    extends Cell
    Cell that moves Player between maps
    • Constructor Summary

      Constructors 
      Constructor Description
      EventMoveToCell​(int id, int directionOut, int x, int y, Map map, WindowOfFreeMove window, boolean paint)  
    • Method Summary

      Modifier and Type Method Description
      int getDirectionOut()  
      int getId()  
      Map getMap()  
      private boolean isActiveTriggerBehindMoveTo()
      Checks for active Trigger cells in the directionOut from Door
      void moveToMap()
      Moves player to map that is linked with this Moveto cell
      void paint​(java.awt.Graphics2D g)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • map

        private final Map map
      • id

        private final int id
      • directionOut

        private final int directionOut
      • paint

        private final boolean paint
    • Constructor Detail

      • EventMoveToCell

        public EventMoveToCell​(int id,
                               int directionOut,
                               int x,
                               int y,
                               Map map,
                               WindowOfFreeMove window,
                               boolean paint)
    • Method Detail

      • getId

        public int getId()
      • getMap

        public Map getMap()
      • getDirectionOut

        public int getDirectionOut()
      • moveToMap

        public void moveToMap()
        Moves player to map that is linked with this Moveto cell
      • isActiveTriggerBehindMoveTo

        private boolean isActiveTriggerBehindMoveTo()
        Checks for active Trigger cells in the directionOut from Door
        Returns:
        true if there is an active Trigger cell
      • paint

        public void paint​(java.awt.Graphics2D g)
        Overrides:
        paint in class Cell