00001 #ifndef GRIDHUNT_H
00002 #define GRIDHUNT_H
00003
00004 #include <iostream>
00005 #include <vector>
00006
00007 #include "Die.h"
00008 #include "Grid.h"
00009 #include "Monster.h"
00010 #include "Hunter.h"
00011
00012
00013 #define COLOR_TERM
00014
00016 class Gridhunt {
00017 public:
00021 Gridhunt(int maxN = 30, int maxE = 30, int maxRounds = 100);
00022 ~Gridhunt();
00024 void run(bool visual = true);
00026 void show() const;
00028 void leaderBoard() const;
00029 void setHunters(vector<Hunter*>);
00030 void setMonster(Monster*);
00031
00032 private:
00033 vector<Hunter*> hunters;
00034 Monster* monster;
00035 int maxRounds;
00036 Grid* grid;
00037 Die* die;
00038
00039 enum Cond {
00040 RUN, WIN
00041 };
00042
00043 };
00044
00045 #endif