added message shortcuts

This commit is contained in:
brukie 2009-06-25 13:12:54 +02:00
parent fb03c5cdbb
commit 6a537979d0
7 changed files with 158 additions and 7 deletions

View file

@ -14,9 +14,9 @@ class DlgStartGame;
class Game : public QObject {
Q_OBJECT
private:
QMenu *actionsMenu, *cardMenu;
QMenu *actionsMenu, *sayMenu, *cardMenu;
QAction *aTap, *aUntap, *aDoesntUntap, *aFlip, *aAddCounter, *aRemoveCounter, *aSetCounters, *aRearrange,
*aUntapAll, *aDecLife, *aIncLife, *aSetLife, *aShuffle, *aDraw, *aDrawCards, *aRollDice, *aCreateToken;
*aUntapAll, *aDecLife, *aIncLife, *aSetLife, *aShuffle, *aDraw, *aDrawCards, *aRollDice, *aCreateToken, *aEditMessages;
DlgStartGame *dlgStartGame;
CardDatabase *db;
@ -26,6 +26,7 @@ private:
Player *localPlayer;
bool started;
Player *addPlayer(int playerId, const QString &playerName, QPointF base, bool local);
void initSayMenu();
private slots:
void actUntapAll();
void actIncLife();
@ -36,6 +37,7 @@ private slots:
void actDrawCards();
void actRollDice();
void actCreateToken();
void actEditMessages();
void showCardMenu(QPoint p);
void actTap();
@ -46,6 +48,8 @@ private slots:
void actRemoveCounter();
void actSetCounters();
void actRearrange();
void actSayMessage();
void gameEvent(const ServerEventData &msg);
void playerListReceived(QList<ServerPlayer *> playerList);