Class DoorCell


  • public class DoorCell
    extends InteractionCell
    Special type of Interaction cell that can act as a Block or as Empty
    • Field Detail

      • isOpen

        private boolean isOpen
      • isLocked

        private boolean isLocked
      • directionVert

        private final boolean directionVert
      • sound

        private java.lang.String sound
      • volume

        private float volume
    • Constructor Detail

      • DoorCell

        public DoorCell​(int x,
                        int y,
                        boolean directionVert,
                        java.lang.String message,
                        Dialog dialog,
                        Map map,
                        WindowOfFreeMove window)
      • DoorCell

        public DoorCell​(int x,
                        int y,
                        boolean directionVert,
                        Map map,
                        WindowOfFreeMove window)
    • Method Detail

      • setSound

        private void setSound()
        Sets sound that is played on interaction
      • isOpen

        public boolean isOpen()
      • setOpen

        public void setOpen​(boolean open)
      • isLocked

        public boolean isLocked()
      • setLocked

        public void setLocked​(boolean locked)
      • getSound

        public java.lang.String getSound()
      • getVolume

        public float getVolume()