org.holtz.zoe.zoel
Enum Register

java.lang.Object
  extended by java.lang.Enum<Register>
      extended by org.holtz.zoe.zoel.Register
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Register>

public enum Register
extends java.lang.Enum<Register>

A Bug attribute that can be an Operator's Operand in a Zoel program.

Author:
Brian Holtz

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

Cycle

public static final Register Cycle

ID

public static final Register ID

Age

public static final Register Age

Size

public static final Register Size

Strength

public static final Register Strength

Heading

public static final Register Heading

Location

public static final Register Location
Locations are strings encoding an XY pair: { x = 100.333, y = 200 } Math operators can work on Locations.


BirthLocation

public static final Register BirthLocation

AncestralLocation

public static final Register AncestralLocation

Species

public static final Register Species

Mood

public static final Register Mood

Pain

public static final Register Pain
-100 <= HealthSlope <= 100 : percent change in total mass-energy from end of previous turn


FeelSomething

public static final Register FeelSomething

SeeSomething

public static final Register SeeSomething

Toward

public static final Register Toward

Away

public static final Register Away

IsAlive

public static final Register IsAlive

IsParent

public static final Register IsParent

IsChild

public static final Register IsChild

IsLastMate

public static final Register IsLastMate

IsAncestor

public static final Register IsAncestor

IsDescendent

public static final Register IsDescendent

IsSameSpecies

public static final Register IsSameSpecies

IsFamily

public static final Register IsFamily

Range

public static final Register Range
Method Detail

values

public static Register[] 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 (Register c : Register.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Register 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 name
java.lang.NullPointerException - if the argument is null

requiresLooking

public boolean requiresLooking()

hasSameValForBothBugs

public boolean hasSameValForBothBugs()

fromString

public static Register fromString(java.lang.String str)

random

public static Register random(java.util.Random random)