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
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 |
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
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