-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathModel.h
40 lines (35 loc) · 840 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
40
#ifndef MODEL_H
#define MODEL_H
#include <iostream>
#include <list>
#include <iterator>
#include <vector>
#include "Trainer.h"
#include "PokemonCenter.h"
#include "PokemonGym.h"
#include "View.h"
#include "WildPokemon.h"
using namespace std;
class Model{
private:
int time;
list <GameObject*> object_ptrs;
list <GameObject*> active_ptrs;
list <Trainer*> trainer_ptrs;
list <PokemonCenter*> center_ptrs;
list <PokemonGym*> gym_ptrs;
list <WildPokemon*> wildpokemon_ptrs;
public:
Model();
~Model();
Trainer * getTrainerPtr(int id);
PokemonCenter * getPokemonCenterPtr(int id);
PokemonGym * getPokemonGymPtr(int id);
WildPokemon * getWildPokemonPtr(int id);
bool Update();
void Display(View& view);
void ShowStatus();
void EncounterPokemon();
void NewCommand(char);
};
#endif