Civilization
Caravan.hpp
1 // Generated by dia2code
2 #ifndef SHARED__CARAVAN__H
3 #define SHARED__CARAVAN__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 Caravan {
16  // Attributes
17  public:
18  std::array<unsigned,2> position;
19  bool used = false;
20  std::string player;
21  private:
22  friend class boost::serialization::access ;
23  // Operations
24  public:
25  Caravan ();
26  Caravan (std::array<unsigned,2> position, std::string player);
27  ElementEnum getType ();
28  std::array<unsigned,2> getPosition ();
29  std::string getPlayerName ();
30  void setPos (std::array<unsigned,2> position);
31  void setUsed (bool used);
32  bool isUsed ();
33  private:
34  template<class Archive> void serialize (Archive& ar, const unsigned int version);
35  // Setters and Getters
36  };
37 
38 };
39 
40 #endif
class Caravan -
Definition: Caravan.hpp:15