23 #ifndef __KGAMEPROCESS_H_ 24 #define __KGAMEPROCESS_H_ 30 #include "kgameproperty.h" 31 #include <krandomsequence.h> 32 #include <tdemacros.h> 34 class KMessageFilePipe;
84 bool exec(
int argc,
char *argv[]);
111 void sendMessage(TQDataStream &stream,
int msgid,TQ_UINT32 receiver=0);
132 void sendSystemMessage(TQDataStream &stream,
int msgid,TQ_UINT32 receiver=0);
143 KRandomSequence *
random() {
return mRandom;}
150 void processArgs(
int argc,
char *argv[]);
157 void receivedMessage(
const TQByteArray& receiveBuffer);
181 void signalCommand(TQDataStream &inputStream,
int msgid,
int receiver,
int sender);
220 void signalTurn(TQDataStream &stream,
bool turn);
233 void signalInit(TQDataStream &stream,
int userid);
237 KMessageFilePipe *mMessageIO;
241 KRandomSequence* mRandom;
void setTerminate(bool b)
Set this to true if the computer process should end, ie leave its exec function.
KRandomSequence * random()
Returns a pointer to a KRandomSequence.
bool terminate() const
Should the computer process leave its exec function? Activated if you setTerminate(true);.
Base class for a game player.
This is the process class used on the computer player side to communicate with its counterpart TDEPro...