From b4bf156884f71bec9fa526e80e1d1db43e7650b2 Mon Sep 17 00:00:00 2001 From: tom Date: Thu, 19 Nov 2015 17:38:17 -0600 Subject: line of guys now appears near middle of map --- inc/Character.hpp | 6 +++++- inc/List.hpp | 18 ++++++++++++++++++ inc/main.hpp | 1 + 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 inc/List.hpp (limited to 'inc') 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 + 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 +#include +using namespace std; + +class List +{ + public: + List(); + void draw(WINDOW * w); + private: + vector 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 -- cgit v1.2.3