Changeset View
Changeset View
Standalone View
Standalone View
libkdegamesprivate/kgame/kgame.h
Show First 20 Lines • Show All 101 Lines • ▼ Show 20 Line(s) | 98 | }; | |||
---|---|---|---|---|---|
102 | * game in load/save and network operations. Change this between | 102 | * game in load/save and network operations. Change this between | ||
103 | * games. | 103 | * games. | ||
104 | */ | 104 | */ | ||
105 | explicit KGame(int cookie=42,QObject* parent=nullptr); | 105 | explicit KGame(int cookie=42,QObject* parent=nullptr); | ||
106 | 106 | | |||
107 | /** | 107 | /** | ||
108 | * Destructs the game | 108 | * Destructs the game | ||
109 | */ | 109 | */ | ||
110 | ~KGame() Q_DECL_OVERRIDE; | 110 | ~KGame() override; | ||
111 | 111 | | |||
112 | /** | 112 | /** | ||
113 | * Gives debug output of the game status | 113 | * Gives debug output of the game status | ||
114 | */ | 114 | */ | ||
115 | void Debug() Q_DECL_OVERRIDE; | 115 | void Debug() override; | ||
116 | 116 | | |||
117 | /** | 117 | /** | ||
118 | * Game status - Use this to Control the game flow. | 118 | * Game status - Use this to Control the game flow. | ||
119 | * The KGame e.g. sets the status to Pause when you have | 119 | * The KGame e.g. sets the status to Pause when you have | ||
120 | * less player than the minimum amount | 120 | * less player than the minimum amount | ||
121 | */ | 121 | */ | ||
122 | enum GameStatus | 122 | enum GameStatus | ||
123 | { | 123 | { | ||
▲ Show 20 Lines • Show All 331 Lines • ▼ Show 20 Line(s) | 132 | }; | |||
455 | * an update/change. | 455 | * an update/change. | ||
456 | * @param msgid Specifies the kind of the message. See messages.txt for | 456 | * @param msgid Specifies the kind of the message. See messages.txt for | ||
457 | * further information | 457 | * further information | ||
458 | * @param stream The message that is being sent | 458 | * @param stream The message that is being sent | ||
459 | * @param receiver The is of the player this message is for. 0 For broadcast. | 459 | * @param receiver The is of the player this message is for. 0 For broadcast. | ||
460 | * @param sender | 460 | * @param sender | ||
461 | * @param clientID the client from which we received the transmission - hardly used | 461 | * @param clientID the client from which we received the transmission - hardly used | ||
462 | **/ | 462 | **/ | ||
463 | void networkTransmission(QDataStream &stream, int msgid, quint32 receiver, quint32 sender, quint32 clientID) Q_DECL_OVERRIDE; | 463 | void networkTransmission(QDataStream &stream, int msgid, quint32 receiver, quint32 sender, quint32 clientID) override; | ||
464 | 464 | | |||
465 | /** | 465 | /** | ||
466 | * Returns a pointer to the KGame property handler | 466 | * Returns a pointer to the KGame property handler | ||
467 | **/ | 467 | **/ | ||
468 | KGamePropertyHandler* dataHandler() const; | 468 | KGamePropertyHandler* dataHandler() const; | ||
469 | 469 | | |||
470 | protected Q_SLOTS: | 470 | protected Q_SLOTS: | ||
471 | /** | 471 | /** | ||
▲ Show 20 Lines • Show All 462 Lines • Show Last 20 Lines |