kgameio.h
410 void sendAllMessages(TQDataStream &stream,int msgid, TQ_UINT32 receiver, TQ_UINT32 sender, bool usermsg);
void signalReaction()
This signal is emitted when your computer player is meant to do something, or better is meant to be a...
void setAdvancePeriod(int ms)
Start a TQTimer which calls advance every ms milli seconds.
Definition kgameio.cpp:488
void setReactionPeriod(int advanceCalls)
The number of advance calls until the player (or rather: the IO) does something (default: 1).
Definition kgameio.cpp:478
virtual void reaction()
Default implementation simply emits signalReaction.
Definition kgameio.cpp:534
void signalPrepareTurn(TQDataStream &stream, bool turn, KGameIO *io, bool *send)
Signal generated when KPlayer::myTurn changes.
void signalKeyEvent(KGameIO *io, TQDataStream &stream, TQKeyEvent *m, bool *eatevent)
Signal handler for keyboard events.
bool eventFilter(TQObject *o, TQEvent *e)
Internal method to process the events.
Definition kgameio.cpp:140
void setMouseTracking(bool b)
Manually activate or deactivate mouse tracking.
Definition kgameio.cpp:194
void signalMouseEvent(KGameIO *io, TQDataStream &stream, TQMouseEvent *m, bool *eatevent)
Signal handler for mouse events.
KGameMouseIO(TQWidget *parent, bool trackmouse=false)
Creates a mouse IO device.
Definition kgameio.cpp:170
void signalIOAdded(KGameIO *game, TQDataStream &stream, KPlayer *p, bool *send)
Signal generated when the computer player is added.
KGameProcessIO(const TQString &name)
Creates a computer player via a separate process.
Definition kgameio.cpp:252
void receivedMessage(const TQByteArray &receiveBuffer)
Internal message handler to receive data from the process.
Definition kgameio.cpp:381
void sendSystemMessage(TQDataStream &stream, int msgid, TQ_UINT32 receiver, TQ_UINT32 sender)
Send a system message to the process.
Definition kgameio.cpp:341
void signalProcessQuery(TQDataStream &stream, KGameProcessIO *me)
A computer query message is received.
virtual void notifyTurn(bool turn)
Notifies the IO device that the player's setTurn had been called Called by KPlayer.
Definition kgameio.cpp:321
void sendMessage(TQDataStream &stream, int msgid, TQ_UINT32 receiver, TQ_UINT32 sender)
Send a message to the process.
Definition kgameio.cpp:346
void sendAllMessages(TQDataStream &stream, int msgid, TQ_UINT32 receiver, TQ_UINT32 sender, bool usermsg)
Internal ~ombined function for all message handling.
Definition kgameio.cpp:351
Trinity API Reference