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

Games::GameState Class Reference

state of game class, used for network game More...

#include <game.h>

Collaboration diagram for Games::GameState:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 GameState (int size)
 general constructor

 GameState ()
 dummy constructor

void getData (unsigned char *ptr)
 get data and clear newData flag

void setData (unsigned char *ptr)
 set data and set newData flag

void print ()
 print informations about game state

void sendMessage (Net::Socket socket, unsigned char type)
 send message to remote player


Public Attributes

System::Mutexed< unsigned
char * > 
data
 mutexed board data

System::Mutexed< bool > localInterrupt
 mutexed information if local interrupt occures

System::Mutexed< bool > remoteInterrupt
 mutexed information if local interrupt occures

System::Mutexed< string > localNick
 mutexed local nick

System::Mutexed< string > remoteNick
 mutexed remote nick

System::Mutexed< bool > newData
 mutexed information if new data are pressent

System::Mutexed< bool > ready
 mutexed information if remote player is ready


Detailed Description

state of game class, used for network game


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