Roguelike
All Classes Namespaces Functions Variables Typedefs Friends Pages
block.h
1 
23 #ifndef _BLOCK_H
24 #define _BLOCK_H
25 
26 #include <int_point.h>
27 #include <building.h>
28 
29 class Block
30 {
31  public:
36 
40  int height;
41 
45  int width;
46 
50  std::vector<Building> buildings;
51 
55  Block();
56 
60  Block(const Block&);
61 
69  Block(int _tl_x, int _tl_y, int _height, int _width);
70 
74  void generate_buildings();
75 
79  std::vector<Building>& get_buildings();
80 
84  int get_height();
85 
89  int get_width();
90 
94  int get_x();
95 
99  int get_y();
100 
101 
102 
103 };
104 
105 #endif
int get_x()
Definition: block.cpp:81
int width
Definition: block.h:45
std::vector< Building > buildings
Definition: block.h:50
void generate_buildings()
Definition: block.cpp:46
int height
Definition: block.h:40
int get_y()
Definition: block.cpp:86
Block()
Definition: block.cpp:25
Definition: int_point.h:26
int get_height()
Definition: block.cpp:71
std::vector< Building > & get_buildings()
Definition: block.cpp:66
IntPoint tl
Definition: block.h:35
int get_width()
Definition: block.cpp:76
Definition: block.h:29