#include <baseClient.h>
Inheritance diagram for baseClient:
Public Methods | |
baseClient (ost::TCPSocket &sock, World *) | |
~baseClient () | |
virtual void | Run () |
virtual void | Final () |
bool | isAlive () |
Checks if the client is alive (the variable) and if the conection is still up. | |
void | walk () |
Makes the semphore post, so the thread continue walking. | |
void | dontWalk () |
World * | getWorld () |
returns actual world | |
Protected Attributes | |
ost::TCPStream * | stream |
bool | alive |
World * | world |
Definition at line 36 of file baseClient.h.
|
Creates the stream from the socket Definition at line 32 of file baseClient.cc. |
|
Destroys the client Definition at line 43 of file baseClient.cc. |
|
Makes the execution of the thread stop, and the numClients counter increment Definition at line 66 of file baseClient.cc. References World::numClients, and world. Referenced by Client::endOfTurn(), GraphicClient::Run(), and ControlClient::Run(). |
|
Definition at line 49 of file baseClient.h. References log. |
|
returns actual world
Definition at line 58 of file baseClient.h. Referenced by Agent::Agent(), and Agent::getWorld(). |
|
Checks if the client is alive (the variable) and if the conection is still up.
Definition at line 52 of file baseClient.h. References alive. |
|
Runs the wait-for-messages loop Reimplemented in Client, ControlClient, and GraphicClient. Definition at line 52 of file baseClient.cc. |
|
Makes the semphore post, so the thread continue walking.
Definition at line 54 of file baseClient.h. |
|
Is the client alive? Definition at line 41 of file baseClient.h. Referenced by baseClient(), Client::initialize(), isAlive(), GraphicClient::Run(), ControlClient::Run(), Client::Run(), and Run(). |
|
The stream from where the data comes Definition at line 39 of file baseClient.h. Referenced by baseClient(), Client::clientLog(), Client::dropCylinder(), Client::endOfTurn(), Client::grow(), Client::initialize(), Client::move(), Client::newCylinder(), GraphicClient::Run(), ControlClient::Run(), Client::Run(), Run(), Client::sendEnergy(), Client::sendMessage(), and ~baseClient(). |
|
The world where the client acts Definition at line 43 of file baseClient.h. Referenced by baseClient(), dontWalk(), Client::dropCylinder(), Client::grow(), Client::initialize(), Client::move(), Client::newCylinder(), GraphicClient::Run(), ControlClient::Run(), Client::sendEnergy(), Client::sendMessage(), and Client::~Client(). |