Class TavernState
- java.lang.Object
-
- ch.sahits.game.openpatrician.model.city.impl.TavernState
-
public class TavernState extends java.lang.ObjectEach 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 Summary
Constructors Constructor Description TavernState(ICity city)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.collections.ObservableList<ITavernPerson>absentPersonProperty()booleanisTalkingToOtherPlayer(ITavernPerson person, IPlayer player)javafx.beans.binding.ObjectBinding<java.util.List<ISideRoomPerson>>presentPersonsInSideRoomBinding()javafx.collections.ObservableList<IPerson>presentPersonsProperty()javafx.beans.property.MapProperty<IPerson,IPlayer>talkingToProperty()
-
-
-
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()
-
isTalkingToOtherPlayer
public boolean isTalkingToOtherPlayer(ITavernPerson person, IPlayer player)
-
-