mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 09:04:53 -07:00
removed some useless game events in favor of event context classes; added some preliminary icons
This commit is contained in:
parent
388e9255c7
commit
0c508f63ec
23 changed files with 399 additions and 226 deletions
|
|
@ -321,14 +321,6 @@ public:
|
|||
static SerializableItem *newItem() { return new Event_Leave; }
|
||||
int getItemId() const { return ItemId_Event_Leave; }
|
||||
};
|
||||
class Event_DeckSelect : public GameEvent {
|
||||
Q_OBJECT
|
||||
public:
|
||||
Event_DeckSelect(int _playerId = -1, int _deckId = -1);
|
||||
int getDeckId() const { return static_cast<SerializableItem_Int *>(itemMap.value("deck_id"))->getData(); };
|
||||
static SerializableItem *newItem() { return new Event_DeckSelect; }
|
||||
int getItemId() const { return ItemId_Event_DeckSelect; }
|
||||
};
|
||||
class Event_GameClosed : public GameEvent {
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
|
@ -336,20 +328,6 @@ public:
|
|||
static SerializableItem *newItem() { return new Event_GameClosed; }
|
||||
int getItemId() const { return ItemId_Event_GameClosed; }
|
||||
};
|
||||
class Event_ReadyStart : public GameEvent {
|
||||
Q_OBJECT
|
||||
public:
|
||||
Event_ReadyStart(int _playerId = -1);
|
||||
static SerializableItem *newItem() { return new Event_ReadyStart; }
|
||||
int getItemId() const { return ItemId_Event_ReadyStart; }
|
||||
};
|
||||
class Event_Concede : public GameEvent {
|
||||
Q_OBJECT
|
||||
public:
|
||||
Event_Concede(int _playerId = -1);
|
||||
static SerializableItem *newItem() { return new Event_Concede; }
|
||||
int getItemId() const { return ItemId_Event_Concede; }
|
||||
};
|
||||
class Event_Shuffle : public GameEvent {
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
|
@ -511,5 +489,27 @@ public:
|
|||
static SerializableItem *newItem() { return new Event_ChatSay; }
|
||||
int getItemId() const { return ItemId_Event_ChatSay; }
|
||||
};
|
||||
class Context_ReadyStart : public GameEventContext {
|
||||
Q_OBJECT
|
||||
public:
|
||||
Context_ReadyStart();
|
||||
static SerializableItem *newItem() { return new Context_ReadyStart; }
|
||||
int getItemId() const { return ItemId_Context_ReadyStart; }
|
||||
};
|
||||
class Context_Concede : public GameEventContext {
|
||||
Q_OBJECT
|
||||
public:
|
||||
Context_Concede();
|
||||
static SerializableItem *newItem() { return new Context_Concede; }
|
||||
int getItemId() const { return ItemId_Context_Concede; }
|
||||
};
|
||||
class Context_DeckSelect : public GameEventContext {
|
||||
Q_OBJECT
|
||||
public:
|
||||
Context_DeckSelect(int _deckId = -1);
|
||||
int getDeckId() const { return static_cast<SerializableItem_Int *>(itemMap.value("deck_id"))->getData(); };
|
||||
static SerializableItem *newItem() { return new Context_DeckSelect; }
|
||||
int getItemId() const { return ItemId_Context_DeckSelect; }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue