![]() |
Conquer Chess
Chess and Starcraft combined
|
#include "race.h"#include <algorithm>#include <cassert>#include <iostream>#include <sstream>#include "../magic_enum/include/magic_enum/magic_enum.hpp"
Functions | |
| std::vector< race > | get_all_races () noexcept |
| double | get_attack_speed (const race r) noexcept |
| Get the attack speed of a race. | |
| double | get_max_health (const race r) |
| Get the maximum health for a piece. | |
| double | get_max_shield (const race r) |
| Get the maximum shield value for a piece. | |
| double | get_movement_speed (const race r) noexcept |
| Get the movement speed of a race. | |
| race | get_next (const race r) noexcept |
| race | get_previous (const race r) noexcept |
| void | test_race () |
| Test the race functions. | |
| std::string | to_human_str (const race c) noexcept |
| std::string | to_str (const race c) noexcept |
| std::ostream & | operator<< (std::ostream &os, const race c) noexcept |
|
noexcept |
|
noexcept |
Get the attack speed of a race.
The value of 1.0 is the baseline.
| double get_max_health | ( | const race | r | ) |
Get the maximum health for a piece.
| double get_max_shield | ( | const race | r | ) |
Get the maximum shield value for a piece.
|
noexcept |
Get the movement speed of a race.
The value of 1.0 is the baseline.
|
noexcept |
| void test_race | ( | ) |
Test the race functions.
|
noexcept |
|
noexcept |