-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathModel.h
39 lines (34 loc) · 821 Bytes
/
Model.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef MODEL_H
#define MODEL_H
#include "GameObject.h"
#include "Pokemon.h"
#include "PokemonCenter.h"
#include "PokemonGym.h"
#include "View.h"
#include "Rival.h"
#include "BattleArena.h"
#include <list>
class Model {
public:
//simulation time
int time;
list<GameObject*> object_ptrs;
list<GameObject*> active_ptrs;
list<Pokemon*> pokemon_ptrs;
list<Rival*> rival_ptrs;
list<PokemonCenter*> center_ptrs;
list<PokemonGym*> gym_ptrs;
BattleArena* arena;
public:
Model();
~Model();
Pokemon* GetPokemonPtr(int id);
PokemonCenter* GetPokemonCenterPtr(int id);
PokemonGym* GetPokemonGymPtr(int id);
BattleArena* GetBattleArenaPtr(int id);
Rival* GetRivalPtr(int id);
bool Update();
void Display(View &view);
void ShowStatus();
};
#endif