summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authortom <tom@ground-control>2015-11-19 17:38:17 -0600
committertom <tom@ground-control>2015-11-19 17:38:17 -0600
commitb4bf156884f71bec9fa526e80e1d1db43e7650b2 (patch)
tree0970f27373408474cf7979c40e2ee4574fb38e3d /inc
parentba71810fab85da23ec8501af6d5d4935458b595e (diff)
line of guys now appears near middle of map
Diffstat (limited to 'inc')
-rw-r--r--inc/Character.hpp6
-rw-r--r--inc/List.hpp18
-rw-r--r--inc/main.hpp1
3 files changed, 24 insertions, 1 deletions
diff --git a/inc/Character.hpp b/inc/Character.hpp
index 4e0869a..f2753a9 100644
--- a/inc/Character.hpp
+++ b/inc/Character.hpp
@@ -1,11 +1,14 @@
#ifndef character_h
#define character_h
+#include <ncurses.h>
+
class Character
{
public:
- Character(char nSymbol, int nRow, int nCol);
+ Character(char nSymbol, int nColor,int nRow, int nCol);
void move(int nRow, int nCol);
+ void draw(WINDOW * w);
int getRow();
int getCol();
char getSymbol();
@@ -14,6 +17,7 @@ class Character
char symbol;
int row;
int col;
+ int color;
};
#endif
diff --git a/inc/List.hpp b/inc/List.hpp
new file mode 100644
index 0000000..5f83846
--- /dev/null
+++ b/inc/List.hpp
@@ -0,0 +1,18 @@
+#ifndef list_h
+#define list_h
+
+#include "Character.hpp"
+#include <vector>
+#include <ncurses.h>
+using namespace std;
+
+class List
+{
+ public:
+ List();
+ void draw(WINDOW * w);
+ private:
+ vector <Character> men;
+};
+
+#endif
diff --git a/inc/main.hpp b/inc/main.hpp
index 6d3cae3..441e0d2 100644
--- a/inc/main.hpp
+++ b/inc/main.hpp
@@ -4,5 +4,6 @@
#include "Screen.hpp"
#include "Character.hpp"
#include "Frame.hpp"
+#include "List.hpp"
#endif