Target to protect or to destroy.
More...
#include <common.hpp>
|
| Base (int player) |
|
optional< Ant > | generate_ant (int id, int round) |
| Try to generate a new ant.
|
|
void | upgrade_generation_speed () |
| Upgrade ant generation speed.
|
|
void | upgrade_generated_ant () |
| Upgrade ant generation speed.
|
|
|
const int | player |
|
const int | x |
|
const int | y |
|
int | hp |
|
int | gen_speed_level |
| Level of production speed.
|
|
int | ant_level |
| Level of produced ants.
|
|
|
static constexpr int | MAX_HP = 50 |
|
static constexpr int | POSITION [2][2] = {{2, EDGE - 1}, {(MAP_SIZE - 1) - 2, EDGE - 1}} |
| Positions for both players.
|
|
static constexpr int | GENERATION_CYCLE_INFO [] = {4, 2, 1} |
| Ants will be generated when round index can be divided by this value.
|
|
Target to protect or to destroy.
◆ generate_ant()
optional< Ant > Base::generate_ant |
( |
int |
id, |
|
|
int |
round |
|
) |
| |
|
inline |
Try to generate a new ant.
- Parameters
-
id | ID for the ant to be generated. |
round | Birth round for the ant to be generated. |
- Returns
- The ant if successfully generated, or nothing.
The documentation for this struct was generated from the following file: