|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Register> org.holtz.zoe.zoel.Register
public enum Register
A Bug
attribute that can be an Operator
's Operand
in a Zoel
program.
Enum Constant Summary | |
---|---|
Age
|
|
AncestralLocation
|
|
Away
|
|
BirthLocation
|
|
Cycle
|
|
FeelSomething
|
|
Heading
|
|
ID
|
|
IsAlive
|
|
IsAncestor
|
|
IsChild
|
|
IsDescendent
|
|
IsFamily
|
|
IsLastMate
|
|
IsParent
|
|
IsSameSpecies
|
|
Location
Locations are strings encoding an XY pair: { x = 100.333, y = 200 } Math operators can work on Locations. |
|
Mood
|
|
Pain
-100 <= HealthSlope <= 100 : percent change in total mass-energy from end of previous turn |
|
Range
|
|
SeeSomething
|
|
Size
|
|
Species
|
|
Strength
|
|
Toward
|
Method Summary | |
---|---|
static Register |
fromString(java.lang.String str)
|
boolean |
hasSameValForBothBugs()
|
static Register |
random(java.util.Random random)
|
boolean |
requiresLooking()
|
static Register |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Register[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Register Cycle
public static final Register ID
public static final Register Age
public static final Register Size
public static final Register Strength
public static final Register Heading
public static final Register Location
public static final Register BirthLocation
public static final Register AncestralLocation
public static final Register Species
public static final Register Mood
public static final Register Pain
public static final Register FeelSomething
public static final Register SeeSomething
public static final Register Toward
public static final Register Away
public static final Register IsAlive
public static final Register IsParent
public static final Register IsChild
public static final Register IsLastMate
public static final Register IsAncestor
public static final Register IsDescendent
public static final Register IsSameSpecies
public static final Register IsFamily
public static final Register Range
Method Detail |
---|
public static Register[] values()
for (Register c : Register.values()) System.out.println(c);
public static Register valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic boolean requiresLooking()
public boolean hasSameValForBothBugs()
public static Register fromString(java.lang.String str)
public static Register random(java.util.Random random)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |