public class NoticeBoardTavernMenuProvider extends Object implements INoticeBoardMenuProvider
| Modifier and Type | Field and Description |
|---|---|
private ch.sahits.game.openpatrician.model.people.impl.CaptainsState |
captainsState |
private ch.sahits.game.openpatrician.model.city.impl.CitiesState |
cityState |
private org.springframework.context.ApplicationContext |
context |
private ch.sahits.game.openpatrician.util.l10n.Locale |
locale |
private org.springframework.context.MessageSource |
messageSource |
private DecoratedTextFactory |
textFactory |
| Constructor and Description |
|---|
NoticeBoardTavernMenuProvider() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
collectPresentPersons(ch.sahits.game.openpatrician.model.city.impl.TavernState tavernState,
List<ch.sahits.game.openpatrician.model.people.IPerson> present,
List<ch.sahits.game.openpatrician.model.people.ISideRoomPerson> sideRoom,
List<ch.sahits.game.openpatrician.model.people.IPerson> mainRoom,
ch.sahits.game.openpatrician.model.IPlayer player) |
LinkedHashSet<NoticeBoardMenuEntry> |
createMenuEntries(ch.sahits.game.openpatrician.client.ICityPlayerProxyJFX proxy,
ENoticeBoardType type)
Create a list of menu entries approypriate forthe type based on the city player proxy object.
|
private NoticeBoardMenuEntry |
createNoticeBoardEntryMainRoom(String s,
ch.sahits.game.openpatrician.model.people.IPerson showingPerson,
ch.sahits.game.openpatrician.model.city.impl.TavernState tavernState,
ch.sahits.game.openpatrician.model.IPlayer currentPlayer) |
private NoticeBoardMenuEntry |
createNoticeBoardEntrySideRoom(String s,
ch.sahits.game.openpatrician.model.people.IPerson showingPerson,
ch.sahits.game.openpatrician.model.city.impl.TavernState tavernState,
ch.sahits.game.openpatrician.model.IPlayer player) |
private EDialogType |
getDialogTypeMainRoom(ch.sahits.game.openpatrician.model.people.IPerson showingPerson) |
private ch.sahits.game.openpatrician.model.city.impl.TavernState |
getTavernState(ch.sahits.game.openpatrician.model.city.ICity city) |
@Autowired private ch.sahits.game.openpatrician.util.l10n.Locale locale
@Autowired private org.springframework.context.MessageSource messageSource
@Autowired private org.springframework.context.ApplicationContext context
@Autowired private DecoratedTextFactory textFactory
@Autowired private ch.sahits.game.openpatrician.model.people.impl.CaptainsState captainsState
@Autowired private ch.sahits.game.openpatrician.model.city.impl.CitiesState cityState
public LinkedHashSet<NoticeBoardMenuEntry> createMenuEntries(ch.sahits.game.openpatrician.client.ICityPlayerProxyJFX proxy, ENoticeBoardType type)
INoticeBoardMenuProvidercreateMenuEntries in interface INoticeBoardMenuProvidertype - of the dialog in cas further distintion is needed.void collectPresentPersons(ch.sahits.game.openpatrician.model.city.impl.TavernState tavernState,
List<ch.sahits.game.openpatrician.model.people.IPerson> present,
List<ch.sahits.game.openpatrician.model.people.ISideRoomPerson> sideRoom,
List<ch.sahits.game.openpatrician.model.people.IPerson> mainRoom,
ch.sahits.game.openpatrician.model.IPlayer player)
private ch.sahits.game.openpatrician.model.city.impl.TavernState getTavernState(ch.sahits.game.openpatrician.model.city.ICity city)
private NoticeBoardMenuEntry createNoticeBoardEntryMainRoom(String s, ch.sahits.game.openpatrician.model.people.IPerson showingPerson, ch.sahits.game.openpatrician.model.city.impl.TavernState tavernState, ch.sahits.game.openpatrician.model.IPlayer currentPlayer)
private NoticeBoardMenuEntry createNoticeBoardEntrySideRoom(String s, ch.sahits.game.openpatrician.model.people.IPerson showingPerson, ch.sahits.game.openpatrician.model.city.impl.TavernState tavernState, ch.sahits.game.openpatrician.model.IPlayer player)
private EDialogType getDialogTypeMainRoom(ch.sahits.game.openpatrician.model.people.IPerson showingPerson)
Copyright © 2011-2017 Sahits GmbH. All Rights Reserved.