Enum ESeaFightType
- java.lang.Object
-
- java.lang.Enum<ESeaFightType>
-
- ch.sahits.game.openpatrician.engine.sea.ESeaFightType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ESeaFightType>
public enum ESeaFightType extends java.lang.Enum<ESeaFightType>
Define the various types of sea fights. While the fight for all types follows the same rule, the notification differs.- Author:
- Andi Hotz, (c) Sahits GmbH, 2016 Created on Apr 26, 2016
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ESeaFightTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ESeaFightType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STANDARD
public static final ESeaFightType STANDARD
Standard sea fight between two fleets.
-
BLOCKADE
public static final ESeaFightType BLOCKADE
Fight of a fleet blockadeing a port against another fleet
-
OUTRIGGER
public static final ESeaFightType OUTRIGGER
Fight of an outrigger against an attacking fleet.
-
-
Method Detail
-
values
public static ESeaFightType[] 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 (ESeaFightType c : ESeaFightType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ESeaFightType 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
-
-