Class Square

java.lang.Object
  |
  +--Enumerate
        |
        +--Square
All Implemented Interfaces:
java.io.Serializable

public class Square
extends Enumerate

The Square class extends the Enumerate class and represents the different types of squares located on a map.

These types include:
1. empty space
2. robot
3. crate
4. incinerator
5. wall
6. starting position

See Also:
Serialized Form

Field Summary
static Square CRATE
           
static Square EMPTY
           
static Square INCINERATOR
           
static Square ROBOT
           
static Square STARTING_POSITION
           
static Square WALL
           
 
Constructor Summary
Square(java.lang.String name)
          Constructor - calls the constructor of the Enumerate class that Square inherits.
 
Methods inherited from class Enumerate
get, get, getName, iterator, pos, readResolve, size, toArray, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY

public static final Square EMPTY

ROBOT

public static final Square ROBOT

CRATE

public static final Square CRATE

INCINERATOR

public static final Square INCINERATOR

WALL

public static final Square WALL

STARTING_POSITION

public static final Square STARTING_POSITION
Constructor Detail

Square

public Square(java.lang.String name)

Constructor - calls the constructor of the Enumerate class that Square inherits.

Parameters:
name - the name of the square: empty, robot, crate, incinerator, wall, or starting position