Enum ENoticeBoardType
- java.lang.Object
-
- java.lang.Enum<ENoticeBoardType>
-
- ch.sahits.game.openpatrician.javafx.model.ENoticeBoardType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ENoticeBoardType>
public enum ENoticeBoardType extends java.lang.Enum<ENoticeBoardType>
The various types of the notice board. There are sub types that allow defining behavior tied to the fact if the notice board is tied to a scene or not.- Author:
- Andi Hotz, (c) Sahits GmbH, 2015 Created on Dec 19, 2015
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARMORY
CHURCH
CITY_HALL_ALDERMAN_OFFICE
CITY_HALL_MAYORS_OFFICE
CITY_HALL_MEETINGROOM
CITY_HALL_NOTICE_BOARD
GUILD
LOANER
MARKET_PLACE
MESSAGE_OFFICIAL
MESSAGE_PERSONAL
MESSAGE_TRADE
SHIP_WARE_INFO
SHIPYARD
TAVERN
TRADING
TRADING_OFFICE
-
Field Summary
Fields Modifier and Type Field Description private boolean
dynamic
Indicates if the content may change dynamicallyprivate boolean
noticeBoardMenu
Indicates that the notice board content is provided by a menu provider generating a NoticeBoardMenu.private boolean
tiedToScene
Indicates if this type is bound to a certain scene
-
Constructor Summary
Constructors Modifier Constructor Description private
ENoticeBoardType(boolean tiedToScene, boolean dynamic, boolean noticeBoardMenu)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ENoticeBoardType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ENoticeBoardType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MESSAGE_OFFICIAL
public static final ENoticeBoardType MESSAGE_OFFICIAL
-
MESSAGE_TRADE
public static final ENoticeBoardType MESSAGE_TRADE
-
MESSAGE_PERSONAL
public static final ENoticeBoardType MESSAGE_PERSONAL
-
SHIPYARD
public static final ENoticeBoardType SHIPYARD
-
ARMORY
public static final ENoticeBoardType ARMORY
-
TAVERN
public static final ENoticeBoardType TAVERN
-
TRADING
public static final ENoticeBoardType TRADING
-
LOANER
public static final ENoticeBoardType LOANER
-
TRADING_OFFICE
public static final ENoticeBoardType TRADING_OFFICE
-
MARKET_PLACE
public static final ENoticeBoardType MARKET_PLACE
-
CHURCH
public static final ENoticeBoardType CHURCH
-
CITY_HALL_NOTICE_BOARD
public static final ENoticeBoardType CITY_HALL_NOTICE_BOARD
-
CITY_HALL_MAYORS_OFFICE
public static final ENoticeBoardType CITY_HALL_MAYORS_OFFICE
-
CITY_HALL_ALDERMAN_OFFICE
public static final ENoticeBoardType CITY_HALL_ALDERMAN_OFFICE
-
CITY_HALL_MEETINGROOM
public static final ENoticeBoardType CITY_HALL_MEETINGROOM
-
GUILD
public static final ENoticeBoardType GUILD
-
SHIP_WARE_INFO
public static final ENoticeBoardType SHIP_WARE_INFO
-
-
Field Detail
-
tiedToScene
private final boolean tiedToScene
Indicates if this type is bound to a certain scene
-
dynamic
private final boolean dynamic
Indicates if the content may change dynamically
-
noticeBoardMenu
private final boolean noticeBoardMenu
Indicates that the notice board content is provided by a menu provider generating a NoticeBoardMenu.
-
-
Method Detail
-
values
public static ENoticeBoardType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ENoticeBoardType c : ENoticeBoardType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ENoticeBoardType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-