PerformGamePlay Class Reference

[BlockOut Index] [BlockOut Heirarchy]


Moves and inserts the figures in the obstacle and accumulates points More...

#include <PerformGamePlay.h>

Public Members

Protected Members


Detailed Description

Moves and inserts the figures in the obstacle and accumulates points.


int getPoints()

Returns the point since last newGame() and current time.

int hasGameEnde()

Returns true if game ended because figure couldn't be moved.

void draw()

Display obstacle and figure.

void newGame()

Starts a new game, clears points and cubes.

void setObstacle(Obstacle *_obstacle)

Sets new obstacle.

bool readFiguresFromFile(const char *filename)

Reads figures from file, returns false if error on file read.

void rotateX(const int direction)

Rotation around the x-axis. direction==1 means clock wise.

void rotateY(const int direction)

Rotation around the y-axis. direction==1 means clock wise.

void rotateZ(const int direction)

Rotation around the z-axis. direction==1 means clock wise.

void moveRel(const Position& rel)

Moves figure relative with rel.

bool lowerFigureOneLevel()

Moves figure one level to bottom if possible. If not, insert it to obstacle and create new figure.

May be user initiated or automatically after time ends.

Returns:
true if figure was lowered, else false (and games has ended then).

void createNewFigure()

Creates a new figure, deletes old one.

Figure **allFigures

Contains all figures read from file.

int countAllFigures

Contains the number of figures read from file.


Documentation generated by skyhunter@Dagobah on Wed Sep 16 18:39:03 MEST 1998
Kdoc