RobotMaze Class Reference
[Maze minigame]

#include <RobotMaze.h>

Collaboration diagram for RobotMaze:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 RobotMaze ()
 RobotMaze (list< RobotMazeCell * > *maze, int commandLimit, Point start, Point end, int direction)
virtual ~RobotMaze ()
RobotMazeCellgetCell (Point location)
 Given an x and y index, return the cell.
int getSize ()
list< RobotMazeCell * > * getMaze ()
int getCommandLimit ()
Point getMazeEnd ()
 Get the point representing the end of the maze.
Point getMazeStart ()
 Get the point representing the start of the maze.
int getRobotStartDirection ()
 Returns the start direction of the robot.

Private Attributes

list< RobotMazeCell * > * Maze
 This is the information about each cell.
int Size
 The height and width of the maze.
int CommandLimit
 The maximum number of commands that can be used for the maze.
int StartDirection
 The start direction of the robot.
Point Start
 The start location of the robot.
Point End
 The destination of the robot in the maze.


Detailed Description

RobotMaze.h

Created on: Dec 1, 2008 Author: Erik

This class holds the information associated with a Robot Maze. It holds the cell information, how big it is, and any constraints.


Constructor & Destructor Documentation

RobotMaze::RobotMaze (  )  [inline]

RobotMaze::RobotMaze ( list< RobotMazeCell * > *  maze,
int  commandLimit,
Point  start,
Point  end,
int  direction 
)

RobotMaze::~RobotMaze (  )  [virtual]


Member Function Documentation

RobotMazeCell * RobotMaze::getCell ( Point  location  ) 

Given an x and y index, return the cell.

int RobotMaze::getCommandLimit (  )  [inline]

list<RobotMazeCell*>* RobotMaze::getMaze (  )  [inline]

Point RobotMaze::getMazeEnd (  )  [inline]

Get the point representing the end of the maze.

Point RobotMaze::getMazeStart (  )  [inline]

Get the point representing the start of the maze.

int RobotMaze::getRobotStartDirection (  )  [inline]

Returns the start direction of the robot.

int RobotMaze::getSize (  )  [inline]


Member Data Documentation

int RobotMaze::CommandLimit [private]

The maximum number of commands that can be used for the maze.

Point RobotMaze::End [private]

The destination of the robot in the maze.

list<RobotMazeCell*>* RobotMaze::Maze [private]

This is the information about each cell.

int RobotMaze::Size [private]

The height and width of the maze.

The start location of the robot.

The start direction of the robot.


The documentation for this class was generated from the following files:

Generated on Mon Mar 16 14:33:15 2009 for LearningGaming by  doxygen 1.5.7.1