squad
1#include "squad/TurnBasedCombat.h"
2#include "squad/SimplRules.h"
3#include "squad/ConsoleView.h"
4
5//////////////////////////////////////////////////////////
6// Алгоритм работы
7
8int main()
9{
10// name; health; defense; strength; dodge; dexterity
11Scene scene {
12{ // отряд 0
13{"рыцарь", 100, 10, 10, 4, 4},
14{"вор", 50, 7, 12, 10, 10},
15{"лучник", 30, 5, 21, 10, 10},
16},
17{ // отряд 1
18{"тролль", 180, 10, 21, 4, 4},
19},
20};
21SimplRules rules(scene);
22ConsoleView view(scene);
23TurnBasedCombat combat(scene, view);
24
25combat.fight(rules);
26
27return 0;
28}
29