Package name.moore.kevin.ze.game.events
Enum windowEvent.REASON
- All Implemented Interfaces:
Serializable,Comparable<windowEvent.REASON>,java.lang.constant.Constable
- Enclosing class:
- windowEvent
List of REASONs for the event, the source should be able to provide the
associated data if required.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCreate a docked tile of the specified object.Swing frame IS closing, now.GUI is built and ready, triggers an FSM state change.A game has been loaded.Load a specified game.No reason at all, NOP.Tick the game at the normal rate.Game paused by the playbar control.fast-Forward the game to the next significant event.Request to exit, with chance to cancel.Swap to the strategic window display and FSM state.Swap to the tactical window display and FSM state.Output a trace level diagnostic.Revert the docked tile into its expanded window. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic windowEvent.REASONReturns the enum constant of this type with the specified name.static windowEvent.REASON[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NULL
No reason at all, NOP. -
TRACE
Output a trace level diagnostic. -
GUIBUILT
GUI is built and ready, triggers an FSM state change. -
FRAMECLOSED
Swing frame IS closing, now. -
REQUESTEXIT
Request to exit, with chance to cancel. -
STRATEGIC
Swap to the strategic window display and FSM state. -
TACTICAL
Swap to the tactical window display and FSM state. -
LOADGAME
Load a specified game.- arg = (File) filename to load eg "game01.xml"
-
LOADEDGAME
A game has been loaded. Need to reset screens, dates etc. -
PLAYPAUSE
Game paused by the playbar control. -
PLAYSTEP
fast-Forward the game to the next significant event. -
PLAY
Tick the game at the normal rate. -
DOCKIFY
Create a docked tile of the specified object.- arg = EntityId to display
-
UNDOCKIFY
Revert the docked tile into its expanded window. -
READY
-
-
Constructor Details
-
REASON
private REASON()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-