world
Class PlainTile
java.lang.Object
|
+--world.Tile
|
+--world.PlainTile
- All Implemented Interfaces:
- Comparable, Direction, Locality
- public class PlainTile
- extends Tile
Class that implements plain tiles for the ICFP-2002 programming
contest entry.
- Version:
- $Revision: 1.2 $
- Author:
- Allen D. Ball
Constructor Summary |
PlainTile(Board board,
int row,
int column)
Creates a plain tile. |
Method Summary |
boolean |
isLethal()
Method to determine if the tile is lethal. |
boolean |
isPassable()
Method to determine if the tile is passable. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlainTile
public PlainTile(Board board,
int row,
int column)
- Creates a plain tile.
- Parameters:
board
- The playing board.row
- The row position of the tile.column
- The column position of the tile.- See Also:
Position
isPassable
public final boolean isPassable()
- Description copied from class:
Tile
- Method to determine if the tile is passable.
- Overrides:
isPassable
in class Tile
- Following copied from class:
world.Tile
- Returns:
- True if a robot may occupy the space;
false otherwise.
isLethal
public final boolean isLethal()
- Description copied from class:
Tile
- Method to determine if the tile is lethal.
- Overrides:
isLethal
in class Tile
- Following copied from class:
world.Tile
- Returns:
- True if a robot will be killed if it
enters the tile; false otherwise.
Copyright 2002 Allen D. Ball. All rights reserved.