-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
26 lines (23 loc) · 875 Bytes
/
Copy pathmain.cpp
File metadata and controls
26 lines (23 loc) · 875 Bytes
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
#include "engine.h"
#include "heros.h"
#include "monsters.h"
#include "vec.h"
int main() {
std::string filename{"settings.txt"};
Settings settings = read_settings(filename);
Engine engine{settings};
engine.create_hero(Heros::wizard);
engine.create_monster(Monsters::goblin());
engine.create_monster(Monsters::zombie_small());
engine.create_monster(Monsters::zombie_small());
engine.create_monster(Monsters::zombie_small());
engine.create_monster(Monsters::zombie_small());
engine.create_monster(Monsters::zombie_small());
engine.create_monster(Monsters::zombie_small());
engine.create_monster(Monsters::zombie_small());
engine.create_monster(Monsters::muddy());
engine.create_monster(Monsters::muddy());
engine.create_monster(Monsters::muddy());
engine.create_monster(Monsters::muddy());
engine.run();
}