Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members

Games::Game Class Reference

base game class More...

#include <game.h>

Inheritance diagram for Games::Game:

Inheritance graph
[legend]
Collaboration diagram for Games::Game:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Game ()
 standard constructor, size of board is 16x16

virtual int run ()
 executes game


Protected Member Functions

virtual bool playerOne ()=0
 player one move

virtual bool playerTwo ()=0
 player two move

virtual void interrupt ()
 interrupt cleaning - not used - remove

virtual bool isInterrupted ()=0
 check if interrupt occures


Protected Attributes

bool running
 is game running

Boardboard
 board of this game


Detailed Description

base game class


Member Function Documentation

virtual bool Games::Game::playerOne  )  [protected, pure virtual]
 

player one move

Returns:
false if player interrupted game otherwise true

Implemented in Games::LocalGame, Games::MasterGame, and Games::SlaveGame.

virtual bool Games::Game::playerTwo  )  [protected, pure virtual]
 

player two move

Returns:
false if player interrupted game otherwise true

Implemented in Games::LocalGame, Games::MasterGame, and Games::SlaveGame.

int Games::Game::run  )  [virtual]
 

executes game

((interrupt) && (0 == (winner = board->winner())) && (this->isInterrupted()))

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Fri May 28 02:26:33 2004 for Piskvorky by doxygen 1.3.7