Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
race.h
Go to the documentation of this file.
1#ifndef RACE_H
2#define RACE_H
3
4#include <iosfwd>
5#include <string>
6#include <vector>
7
9enum class race
10{
11 classic,
12 rooxx,
13 kingdom,
14 spawn
15};
16
17std::vector<race> get_all_races() noexcept;
18
22double get_attack_speed(const race r) noexcept;
23
25double get_max_health(const race r);
26
28double get_max_shield(const race r);
29
33double get_movement_speed(const race r) noexcept;
34
35race get_next(const race r) noexcept;
36
37race get_previous(const race r) noexcept;
38
40void test_race();
41
42std::string to_human_str(const race c) noexcept;
43
44std::string to_str(const race c) noexcept;
45
46std::ostream& operator<<(std::ostream& os, const race c) noexcept;
47
48#endif // RACE_H
std::vector< race > get_all_races() noexcept
Definition race.cpp:10
race get_previous(const race r) noexcept
Definition race.cpp:91
race
The chess race.
Definition race.h:10
@ kingdom
@ classic
double get_max_shield(const race r)
Get the maximum shield value for a piece.
Definition race.cpp:48
void test_race()
Test the race functions.
Definition race.cpp:105
double get_movement_speed(const race r) noexcept
Get the movement speed of a race.
Definition race.cpp:62
double get_attack_speed(const race r) noexcept
Get the attack speed of a race.
Definition race.cpp:20
std::string to_human_str(const race c) noexcept
Definition race.cpp:175
std::string to_str(const race c) noexcept
Definition race.cpp:183
race get_next(const race r) noexcept
Definition race.cpp:77
double get_max_health(const race r)
Get the maximum health for a piece.
Definition race.cpp:34