My Project
 All Classes
Area.h
1 #include <iostream>
2 #include <array>
3 #include "Koord.h"
4 #define WIDTH 50
5 #define HEIGHT 40
6 
7 class Area
8 {
9  private:
10  //~ std::array<int, HEIGHT+2> _area;
11  std::array< std::array<char, WIDTH+2>, HEIGHT+2> _area;
12 
13  public:
14  Area();
15  char getPos(int height, int width);
16  void setPos(int height, int width, char _char);
17  char getPos(Koord k);
18  void setPos(Koord k, char _char);
19  unsigned int getHeight();
20  unsigned int getWidth();
21  void basicSet();
22  void wallSet();
23  void printField();
24  bool shrink(unsigned int dist);
25  std::string getAsString();
26 };