#include <RobotMazeCell.h>
Public Member Functions | |
| RobotMazeCell (RobotMazeObstacle obstacle, BITMAP *ground, bool eastWall, bool southWall) | |
| virtual | ~RobotMazeCell () |
| bool | hasEastWall () |
| bool | hasSouthWall () |
| RobotMazeObstacle | getObstacle () |
| Returns the obstacle at this cell. | |
| BITMAP * | getGround () |
| Returns the bitmap of the ground. | |
Private Attributes | |
| bool | EastWall |
| Outside walls are assumed, so only the inside walls need to be remembered. | |
| bool | SouthWall |
| RobotMazeObstacle | Obstacle |
| BITMAP * | Ground |
Created on: Dec 9, 2008 Author: Erik
This class holds the information associated with a cell in a Robot Maze, but not its location.
| RobotMazeCell::RobotMazeCell | ( | RobotMazeObstacle | obstacle, | |
| BITMAP * | ground, | |||
| bool | eastWall, | |||
| bool | southWall | |||
| ) |
| RobotMazeCell::~RobotMazeCell | ( | ) | [virtual] |
| BITMAP* RobotMazeCell::getGround | ( | ) | [inline] |
Returns the bitmap of the ground.
| RobotMazeObstacle RobotMazeCell::getObstacle | ( | ) | [inline] |
Returns the obstacle at this cell.
| bool RobotMazeCell::hasEastWall | ( | ) | [inline] |
The walls of the maze are kept track of as the south and east walls of each cell, with walls around so the south walls on the bottom row and the east walls on the right row are trivial
| bool RobotMazeCell::hasSouthWall | ( | ) | [inline] |
bool RobotMazeCell::EastWall [private] |
Outside walls are assumed, so only the inside walls need to be remembered.
BITMAP* RobotMazeCell::Ground [private] |
RobotMazeObstacle RobotMazeCell::Obstacle [private] |
bool RobotMazeCell::SouthWall [private] |
1.5.7.1