1 #ifndef SERVER_ARROW_H
2 #define SERVER_ARROW_H
3 
4 #include "pb/color.pb.h"
5 
6 class Server_Card;
7 class Server_ArrowTarget;
8 class ServerInfo_Arrow;
9 
10 class Server_Arrow
11 {
12 private:
13     int id;
14     Server_Card *startCard;
15     Server_ArrowTarget *targetItem;
16     color arrowColor;
17 
18 public:
19     Server_Arrow(int _id, Server_Card *_startCard, Server_ArrowTarget *_targetItem, const color &_arrowColor);
getId()20     int getId() const
21     {
22         return id;
23     }
getStartCard()24     Server_Card *getStartCard() const
25     {
26         return startCard;
27     }
getTargetItem()28     Server_ArrowTarget *getTargetItem() const
29     {
30         return targetItem;
31     }
getColor()32     const color &getColor() const
33     {
34         return arrowColor;
35     }
36 
37     void getInfo(ServerInfo_Arrow *info);
38 };
39 
40 #endif
41