diff options
author | tom <tom@ground-control> | 2015-11-18 19:59:47 -0600 |
---|---|---|
committer | tom <tom@ground-control> | 2015-11-18 19:59:47 -0600 |
commit | a760b9339a98281a8a1072d03dbf41f08eb696a6 (patch) | |
tree | f1e7958d297c55fdbc6daa1a8d1777cb1ca78fc6 /inc/Frame.hpp |
shovelling
Diffstat (limited to 'inc/Frame.hpp')
-rw-r--r-- | inc/Frame.hpp | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/inc/Frame.hpp b/inc/Frame.hpp new file mode 100644 index 0000000..35ff0d6 --- /dev/null +++ b/inc/Frame.hpp @@ -0,0 +1,41 @@ +#ifndef frame_h +#define frame_h + +#include <ncurses.h> +#include "Character.hpp" +#include <string> +#include <fstream> + + +class Frame +{ + public: + //Frame(int rows, int cols, int nRow, int nCol); // main window test + Frame(string location, int nRow, int nCol); // main window with seeded map + Frame(Frame &super, int rows, int cols, int nRow, int nCol); // viewport + ~Frame(); + WINDOW * getWin(); + WINDOW * getSuper(); + bool getHasSuper(); + int getHeight(); + int getWidth(); + int getRow(); + int getCol(); + void fillWindow(); + void refresh(); + void move(int nRow, int nCol); + void add(Character &c); + void add(Character &c, int nRow, int nCol); + void erase(Character &c); + void center(Character &ch); + + private: + int height, width; + int row, col; + bool hasSuper; + WINDOW * w; + WINDOW * super; + string m; +}; + +#endif |