public class TavernState extends Object
| Type | Property and Description |
|---|---|
javafx.collections.ObservableList<ITavernPerson> |
absentPerson |
javafx.collections.ObservableList<IPerson> |
presentPersons |
javafx.beans.property.MapProperty<IPerson,IPlayer> |
talkingTo |
| Modifier and Type | Class and Description |
|---|---|
private class |
TavernState.PresenceChangeListener |
private class |
TavernState.SideRoomBinding
Concrete class for an object binding to avoid issues with serialization.
|
| Constructor and Description |
|---|
TavernState(ICity city) |
| Modifier and Type | Method and Description |
|---|---|
javafx.collections.ObservableList<ITavernPerson> |
absentPersonProperty() |
(package private) List<ITavernPerson> |
asListAllAbsent()
Retrieve all people who are present
|
(package private) List<IPerson> |
asListAllPresent()
Retrieve all people who are present
|
private List<ITavernPerson> |
getAbsentPersons() |
private List<IPerson> |
getPresentPersons()
Retrieve a list of all persons present at the tavern
|
ISailorState |
getSailors() |
private void |
initCity() |
private void |
initializePresenceBinding() |
boolean |
isTalkingToOtherPlayer(ITavernPerson person,
IPlayer player) |
javafx.beans.binding.ObjectBinding<List<ISideRoomPerson>> |
presentPersonsInSideRoomBinding() |
javafx.collections.ObservableList<IPerson> |
presentPersonsProperty() |
void |
setContractBrooker(IContractBroker contractBrooker) |
javafx.beans.property.MapProperty<IPerson,IPlayer> |
talkingToProperty() |
public javafx.collections.ObservableList<ITavernPerson> absentPersonProperty
public javafx.collections.ObservableList<IPerson> presentPersonsProperty
private String name
@Autowired private ITrader trader
@Autowired private IInformant informant
@Autowired private ITraveler traveler
private Optional<IContractBroker> contractBrooker
@Autowired private IThieve thieve
@Autowired private IEscorte escorte
@Autowired private IFugitive fugative
@Autowired private IPatrol patrol
@Autowired private ICourier courier
@Autowired private ITransportTrader transportTrader
@Autowired private IConcurrent concurrent
@Autowired private IBuyer buyer
@Autowired private IPirateHunter pirateHunter
@Autowired private IWarehouseTenant warehouseTenant
@Autowired private ISmuggler smuggler
@Autowired private ITreasureMapOwner treasureMap
@Autowired private IWeaponsDealer weaponsDealer
@Autowired private IPirate pirate
@Autowired private ISailorState sailors
@Autowired @Qualifier(value="resourceReference") private org.springframework.context.MessageSource resources
@Autowired private Locale locale
private ICity city
private javafx.collections.ObservableList<ITavernPerson> absentPersons
private javafx.collections.ObservableList<IPerson> presentPersons
private TavernState.SideRoomBinding presentPersonsInSideRoom
private final List<ISideRoomPerson> sideRoomPersons
private RandomNameLoader tavernNameLoader
public TavernState(ICity city)
public javafx.collections.ObservableList<ITavernPerson> absentPersonProperty()
public javafx.collections.ObservableList<IPerson> presentPersonsProperty()
public javafx.beans.binding.ObjectBinding<List<ISideRoomPerson>> presentPersonsInSideRoomBinding()
public ISailorState getSailors()
private void initCity()
@PostConstruct private void initializePresenceBinding()
private List<ITavernPerson> getAbsentPersons()
private List<IPerson> getPresentPersons()
public void setContractBrooker(IContractBroker contractBrooker)
List<ITavernPerson> asListAllAbsent()
public boolean isTalkingToOtherPlayer(ITavernPerson person, IPlayer player)
Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.