mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-10 12:03:25 -08:00
[Refactor] Move AnnotationDialog and action data types into game/
Folds in the closed #7410 (Move AnnotationDialog from game/ logic to game_graphics/) now that layers 1-2 are closed and this stack bottoms on master directly: - Add game_graphics/dialogs/dlg_annotation.{h,cpp} and move the QInputDialog subclass there; game/ no longer declares any widget type. - Add game/player/token_info.h and game/player/move_top_cards_until_options.h. - Move CardMenuActionType to game/player/card_menu_action_type.h. - Graphics dialog headers include the new game/ headers instead of defining the structs themselves. No behavior change.
This commit is contained in:
parent
6c660d6b21
commit
c02576b827
14 changed files with 89 additions and 50 deletions
23
cockatrice/src/game/player/token_info.h
Normal file
23
cockatrice/src/game/player/token_info.h
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
/**
|
||||
* @file token_info.h
|
||||
* @ingroup GameLogicPlayers
|
||||
*/
|
||||
//! \todo Document this file.
|
||||
|
||||
#ifndef COCKATRICE_TOKEN_INFO_H
|
||||
#define COCKATRICE_TOKEN_INFO_H
|
||||
|
||||
#include <QString>
|
||||
|
||||
struct TokenInfo
|
||||
{
|
||||
QString name;
|
||||
QString color;
|
||||
QString pt;
|
||||
QString annotation;
|
||||
bool destroy = true;
|
||||
bool faceDown = false;
|
||||
QString providerId;
|
||||
};
|
||||
|
||||
#endif // COCKATRICE_TOKEN_INFO_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue