mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
game is almost playable again
This commit is contained in:
parent
0d4717f40b
commit
e796af2b89
34 changed files with 309 additions and 320 deletions
|
|
@ -1,20 +1,22 @@
|
|||
#ifndef SERVER_ARROW_H
|
||||
#define SERVER_ARROW_H
|
||||
|
||||
#include <QColor>
|
||||
|
||||
class Server_Card;
|
||||
|
||||
class Server_Arrow {
|
||||
private:
|
||||
int id;
|
||||
Server_Card *startCard, *targetCard;
|
||||
int color;
|
||||
QColor color;
|
||||
public:
|
||||
Server_Arrow(int _id, Server_Card *_startCard, Server_Card *_targetCard, int _color)
|
||||
Server_Arrow(int _id, Server_Card *_startCard, Server_Card *_targetCard, const QColor &_color)
|
||||
: id(_id), startCard(_startCard), targetCard(_targetCard), color(_color) { }
|
||||
int getId() const { return id; }
|
||||
Server_Card *getStartCard() const { return startCard; }
|
||||
Server_Card *getTargetCard() const { return targetCard; }
|
||||
int getColor() const { return color; }
|
||||
QColor getColor() const { return color; }
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue