Civilization
ControlPawn.hpp
1 // Generated by dia2code
2 #ifndef SHARED__CONTROLPAWN__H
3 #define SHARED__CONTROLPAWN__H
4 
5 #include <array>
6 #include <string>
7 #include <boost/serialization/access.hpp>
8 #include <boost/serialization/vector.hpp>
9 
10 #include "ElementEnum.hpp"
11 
12 namespace shared {
13 
15  class ControlPawn {
16  // Attributes
17  public:
18  bool reinforced = false;
19  std::array<unsigned,2> position;
20  std::string player;
21  private:
22  friend class boost::serialization::access ;
23  // Operations
24  public:
25  ControlPawn ();
26  ControlPawn (std::array<unsigned, 2> position, std::string player);
27  ElementEnum getType ();
28  std::array<unsigned,2> getPosition ();
29  std::string getPlayerName ();
30  void setReinforced ();
31  void setNotReinforced ();
32  bool isReinforced ();
33  void moveTo ();
34  private:
35  template<class Archive> void serialize (Archive& ar, const unsigned int version);
36  // Setters and Getters
37  };
38 
39 };
40 
41 #endif
class ControlPawn -
Definition: ControlPawn.hpp:15