#include <MazeView.h>

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 | |
| RobotMaze * | Maze |
| int | MazeSize |
| bool | MazeFinished |
| MazeView::MazeView | ( | RobotMaze * | maze | ) |
| MazeView::~MazeView | ( | ) | [virtual] |
| 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.
RobotMaze* MazeView::Maze [private] |
bool MazeView::MazeFinished [private] |
int MazeView::MazeSize [private] |
1.5.7.1