Class InteractionCell

    • Field Detail

      • message

        protected java.lang.String message
      • dialog

        protected Dialog dialog
      • scanner

        protected java.util.Scanner scanner
      • imageCell

        private final ImageCell imageCell
      • paint

        protected boolean paint
      • timer

        private javax.swing.Timer timer
      • textTimer

        private javax.swing.Timer textTimer
      • LOG

        private static final java.util.logging.Logger LOG
    • Constructor Detail

      • InteractionCell

        public InteractionCell​(int x,
                               int y,
                               java.lang.String message,
                               Dialog dialog,
                               Map map,
                               WindowOfFreeMove window,
                               boolean paint)
    • Method Detail

      • startEvent

        public void startEvent()
        Starts regular event or cut-scene
      • readDialogFile

        public void readDialogFile​(java.lang.String name)
        Reads event file and passes in on to readNextLine
        Parameters:
        name - event file name
      • readNextLine

        public void readNextLine()
        Parses line of event text into set of commands
      • endEvent

        public void endEvent()
        Ends event and bounds camera
      • playCustscene

        public void playCustscene​(java.lang.String name,
                                  int i)
        Parses line of cut-scene text into a set of commands if the sequence numbers are equal
        Parameters:
        name - text to parse
        i - sequence number
      • useItem

        public void useItem​(Item item)
        Uses a selected item
        Parameters:
        item - item to be used
      • paint

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class Cell
      • getImageCell

        public ImageCell getImageCell()
      • getDialog

        public Dialog getDialog()