MazeView Class Reference
[Maze minigame]

#include <MazeView.h>

Collaboration diagram for MazeView:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 MazeView (RobotMaze *maze)
virtual ~MazeView ()
void draw (BITMAP *bmp, AnimatedRobot *robot, int xPos, int yPos, int xSize, int ySize)
void setMazeFinished (bool finished)
 This is called if the robot gets to the end successfully and alters the look of the switch at the end.

Private Member Functions

void drawCell (BITMAP *bmp, RobotMazeCell *cell, int xPos, int yPos, int xSize, int ySize, int cellXPos, int cellYPos)
 Draw a single cell in the map.
void drawGround (BITMAP *bmp, int xPos, int yPos, int xSize, int ySize)
 Draw the ground for the maze.
void drawObstacle (BITMAP *bmp, RobotMazeObstacle obstacle, int xPos, int yPos, int xSize, int ySize)
 Draw an obstacle for one cell.
void drawCellGround (BITMAP *bmp, BITMAP *ground, int xPos, int yPos, int xSize, int ySize)
 Draw the ground for one cell.

Static Private Member Functions

static void drawEastWall (BITMAP *bmp, int xPos, int yPos, int thickness, int width, int height)
 Draw the various wall parts.
static void drawSouthWall (BITMAP *bmp, int xPos, int yPos, int thickness, int width, int height)
static void drawWallPost (BITMAP *bmp, int xPos, int yPos, int thickness, int height)

Private Attributes

RobotMazeMaze
int MazeSize
bool MazeFinished


Constructor & Destructor Documentation

MazeView::MazeView ( RobotMaze maze  ) 

MazeView::~MazeView (  )  [virtual]


Member Function Documentation

void MazeView::draw ( BITMAP *  bmp,
AnimatedRobot robot,
int  xPos,
int  yPos,
int  xSize,
int  ySize 
)

void MazeView::drawCell ( BITMAP *  bmp,
RobotMazeCell cell,
int  xPos,
int  yPos,
int  xSize,
int  ySize,
int  cellXPos,
int  cellYPos 
) [private]

Draw a single cell in the map.

void MazeView::drawCellGround ( BITMAP *  bmp,
BITMAP *  ground,
int  xPos,
int  yPos,
int  xSize,
int  ySize 
) [private]

Draw the ground for one cell.

void MazeView::drawEastWall ( BITMAP *  bmp,
int  xPos,
int  yPos,
int  thickness,
int  width,
int  height 
) [static, private]

Draw the various wall parts.

void MazeView::drawGround ( BITMAP *  bmp,
int  xPos,
int  yPos,
int  xSize,
int  ySize 
) [private]

Draw the ground for the maze.

void MazeView::drawObstacle ( BITMAP *  bmp,
RobotMazeObstacle  obstacle,
int  xPos,
int  yPos,
int  xSize,
int  ySize 
) [private]

Draw an obstacle for one cell.

void MazeView::drawSouthWall ( BITMAP *  bmp,
int  xPos,
int  yPos,
int  thickness,
int  width,
int  height 
) [static, private]

void MazeView::drawWallPost ( BITMAP *  bmp,
int  xPos,
int  yPos,
int  thickness,
int  height 
) [static, private]

void MazeView::setMazeFinished ( bool  finished  )  [inline]

This is called if the robot gets to the end successfully and alters the look of the switch at the end.


Member Data Documentation

bool MazeView::MazeFinished [private]

int MazeView::MazeSize [private]


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

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