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

Games::NetworkGame Class Reference

base network game class More...

#include <game.h>

Inheritance diagram for Games::NetworkGame:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NetworkGame ()
 dummy constructor

virtual ~NetworkGame ()
 standard destructor


Protected Member Functions

bool localPlayer (unsigned char pl)
 local player moves

bool remotePlayer (unsigned char pl)
 remote player moves

virtual bool isInterrupted ()
 occures interrupt

virtual void interrupt ()
 cleans after interrupt


Protected Attributes

System::Listener listener
 server thread

Net::ClientSocket socket
 outgoing socket


Detailed Description

base network game class


Member Function Documentation

virtual bool Games::NetworkGame::isInterrupted  )  [inline, protected, virtual]
 

occures interrupt

Returns:
false if player interrupted game otherwise true

Implements Games::Game.

bool Games::NetworkGame::localPlayer unsigned char  pl  )  [protected]
 

local player moves

Parameters:
pl player number (1 or 2)

Here is the call graph for this function:

bool Games::NetworkGame::remotePlayer unsigned char  pl  )  [protected]
 

remote player moves

Parameters:
pl player number (1 or 2)

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:35 2004 for Piskvorky by doxygen 1.3.7