Roguelike
 All Classes Namespaces Functions Variables Typedefs Friends Pages
settlement.h
1 
23 #ifndef _SETTLEMENT_H
24 #define _SETTLEMENT_H
25 
26 #include <int_point.h>
27 #include <binary_space.h>
28 #include <block.h>
29 
64 {
65  private:
66 
72 
79  int height;
80 
81  int width;
82 
87 
92  std::vector<Block> blocks;
93 
97  bool walled;
98 
102  int age;
103 
111 
120 
129  std::vector<IntPoint> centers;
130 
142  //NPC* ruler;
143 
144 
152 
164  bool feudal;
165 
175  bool planned;
176 
184  std::vector<Tile> building_mats;
185 
186  public:
193  Settlement(int chunk_x, int chunk_y, int _height, int _width);
194 
198  void settlement_from_bst(BSpaceTree& bst);
199 
203  void blocks_from_bst(BSpaceTree& bst);
204 
205  std::vector<Block>& get_blocks();
206 };
207 
208 #endif
Definition: settlement.h:63
Definition: binary_space.h:51
void blocks_from_bst(BSpaceTree &bst)
Definition: settlement.cpp:41
void settlement_from_bst(BSpaceTree &bst)
Definition: settlement.cpp:36
std::vector< Tile > building_mats
Definition: settlement.h:184
int age
Definition: settlement.h:102
int developments
Definition: settlement.h:110
IntPoint chunk
Definition: settlement.h:71
int population
Definition: settlement.h:86
bool walled
Definition: settlement.h:97
int height
Definition: settlement.h:79
bool feudal
Definition: settlement.h:164
Definition: int_point.h:26
Settlement(int chunk_x, int chunk_y, int _height, int _width)
Definition: settlement.cpp:25
int num_focals
Definition: settlement.h:119
std::vector< IntPoint > centers
Definition: settlement.h:129
std::vector< Block > blocks
Definition: settlement.h:92
int agriculture
Definition: settlement.h:151
bool planned
Definition: settlement.h:175