edu.ou.pacman.view
Enum ViewItem

java.lang.Object
  extended by java.lang.Enum<ViewItem>
      extended by edu.ou.pacman.view.ViewItem
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ViewItem>

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

Items that are used for the game board view.

Author:
Derek Rushing

Enum Constant Summary
Blue_Ghost
           
Default_Color_Object
           
Full_Square_Object
           
Orange_Ghost
           
Pacman
           
Pellet
           
Pink_Ghost
           
Red_Ghost
           
Upgrade
           
 
Method Summary
static ViewItem valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ViewItem[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Blue_Ghost

public static final ViewItem Blue_Ghost

Default_Color_Object

public static final ViewItem Default_Color_Object

Full_Square_Object

public static final ViewItem Full_Square_Object

Orange_Ghost

public static final ViewItem Orange_Ghost

Pacman

public static final ViewItem Pacman

Pellet

public static final ViewItem Pellet

Pink_Ghost

public static final ViewItem Pink_Ghost

Red_Ghost

public static final ViewItem Red_Ghost

Upgrade

public static final ViewItem Upgrade
Method Detail

values

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

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

valueOf

public static ViewItem 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