Package name.moore.kevin.ze.game.events
Enum gameEvent.REASON
- All Implemented Interfaces:
Serializable,Comparable<gameEvent.REASON>,java.lang.constant.Constable
- Enclosing class:
- gameEvent
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 ConstantDescriptionNotification that a planned journey has been completed.Construction of something has been completed.Initiate construction of something.Instruction to leave orbit and travel towards a destination.Cease aggressive attacks and attempt place itself out of combat.Target and attack specified entity as best possible.Change in a factions finances.No reason at all, NOP.A repair was completed on an item.The game clock has changed.Testing purposes, NOP.Output an appropriate trace level logging.Violence was initiated, recheck diplomatic affiliations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic gameEvent.REASONReturns the enum constant of this type with the specified name.static gameEvent.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. -
TEST
Testing purposes, NOP. -
TRACE
Output an appropriate trace level logging. Good for testing. -
STARDATE
The game clock has changed.- primary = unused, set to NULL_ID
- secondary = unused
- date = new stardate
-
ARRIVED
Notification that a planned journey has been completed. event source = EventId of what was travelling. -
DEPART
Instruction to leave orbit and travel towards a destination.- primary = EntityId of ship
- secondary = EntityId of destination planet
-
COMPLETED
Construction of something has been completed.- primary = EntityId of builder (eg planet, shipyard, industry)
- secondary = unused
-
FINALISE
-
CONSTRUCT
Initiate construction of something.- primary = EntityId of spec to be built.
- secondary = EntityId of planet where building occurs
-
INSTALL
-
REPAIRED
A repair was completed on an item. Expects a piece object as the source -
VIOLENCE
Violence was initiated, recheck diplomatic affiliations. This is only posted at -initiation- rather than on every shot. -
ENGAGE
Target and attack specified entity as best possible. Other things may be attacked in passing, but this is considered the attackers objective.- primary = EntityId of attacker (a ship)
- secondary = EntityId of target.
-
DISENGAGE
Cease aggressive attacks and attempt place itself out of combat. The ship may well continue firing but its goal will be to escape combat.- primary = EntityId of attacker (a ship)
- secondary = unused.
-
FINANCE
Change in a factions finances. The source object is the faction which is then used to get the bank balance.
-
-
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
-