Class TavernState


  • public class TavernState
    extends java.lang.Object
    Each tavern engine has to store its state. The tavern state is of type prototype as each city has its separate tavern state, but there it is a singleton instance. The initialisation of the tavern state happens in the city state.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2013 Created on Jan 19, 2013
    • Constructor Detail

      • TavernState

        public TavernState​(ICity city)
    • Method Detail

      • absentPersonProperty

        public javafx.collections.ObservableList<ITavernPerson> absentPersonProperty()
      • presentPersonsProperty

        public javafx.collections.ObservableList<IPerson> presentPersonsProperty()
      • presentPersonsInSideRoomBinding

        public javafx.beans.binding.ObjectBinding<java.util.List<ISideRoomPerson>> presentPersonsInSideRoomBinding()
      • talkingToProperty

        public javafx.beans.property.MapProperty<IPerson,​IPlayer> talkingToProperty()
      • isTalkingToOtherPlayer

        public boolean isTalkingToOtherPlayer​(ITavernPerson person,
                                              IPlayer player)