org.starhope.appius.game.npc
Enum PetBehaviour

java.lang.Object
  extended by java.lang.Enum<PetBehaviour>
      extended by org.starhope.appius.game.npc.PetBehaviour
All Implemented Interfaces:
Serializable, Comparable<PetBehaviour>

public enum PetBehaviour
extends Enum<PetBehaviour>

TODO: The documentation for this type (PetBehaviour) is incomplete. (brpocock@star-hope.org, Nov 24, 2009)

Author:
brpocock@star-hope.org

Enum Constant Summary
BOTHER_FRIEND
          Set this pet to follow a random person in the room BOTHER_FRIEND (PetBehaviour)
FLOCK
          Join into a flock of pets FLOCK (PetBehaviour)
FOLLOW_LEADER
          Follow-the-leader, baby chick style.
FOLLOW_MASTER
          Follow the master (owner).
MASTER_EXIT
          When the master leaves the screen, hurry to their last-known position and then vanish ourself.
RANDOM
          Choose a new behavioral pattern at random RANDOM (PetBehaviour)
TAKE_NAP
          Do nothing for a while.
 
Method Summary
static PetBehaviour valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PetBehaviour[] 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

BOTHER_FRIEND

public static final PetBehaviour BOTHER_FRIEND
Set this pet to follow a random person in the room BOTHER_FRIEND (PetBehaviour)


FLOCK

public static final PetBehaviour FLOCK
Join into a flock of pets FLOCK (PetBehaviour)


FOLLOW_LEADER

public static final PetBehaviour FOLLOW_LEADER
Follow-the-leader, baby chick style. Each member will join a “train” like a Conga Line. FOLLOW_LEADER (PetBehaviour)


FOLLOW_MASTER

public static final PetBehaviour FOLLOW_MASTER
Follow the master (owner). This will create a sort of flock around the owner if many pets choose it. FOLLOW_MASTER (PetBehaviour)


MASTER_EXIT

public static final PetBehaviour MASTER_EXIT
When the master leaves the screen, hurry to their last-known position and then vanish ourself. MASTER_EXIT (PetBehaviour)


RANDOM

public static final PetBehaviour RANDOM
Choose a new behavioral pattern at random RANDOM (PetBehaviour)


TAKE_NAP

public static final PetBehaviour TAKE_NAP
Do nothing for a while. TAKE_NAP (PetBehaviour)

Method Detail

values

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

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

valueOf

public static PetBehaviour valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null