![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
Include dependency graph for barbarian.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | MIN_UNREST_DIST 5 |
| #define | MAX_UNREST_DIST 8 |
| #define | UPRISE_CIV_SIZE 10 |
| #define | MAP_FACTOR 2000 |
| #define | BARBARIAN_MIN_LIFESPAN 5 |
Functions | |
| bool | unleash_barbarians (struct tile *ptile) |
| Unleash barbarians means give barbarian player some units and move them out of the hut, unless there's no place to go. More... | |
| void | summon_barbarians () |
| Summon barbarians out of the blue. More... | |
| bool | is_land_barbarian (struct player *pplayer) |
| Is player a land barbarian? More... | |
| bool | is_sea_barbarian (struct player *pplayer) |
| Is player a sea barbarian? More... | |
| struct player * | create_barbarian_player (enum barbarian_type type) |
| Creates the land/sea barbarian player and inits some stuff. More... | |
| #define BARBARIAN_MIN_LIFESPAN 5 |
Definition at line 29 of file barbarian.h.
| #define MAP_FACTOR 2000 |
Definition at line 27 of file barbarian.h.
| #define MAX_UNREST_DIST 8 |
Definition at line 23 of file barbarian.h.
| #define MIN_UNREST_DIST 5 |
Definition at line 22 of file barbarian.h.
| #define UPRISE_CIV_SIZE 10 |
Definition at line 25 of file barbarian.h.
| struct player* create_barbarian_player | ( | enum barbarian_type | type | ) |
Creates the land/sea barbarian player and inits some stuff.
If barbarian player already exists, return player pointer. If barbarians are dead, revive them with a new leader :-)
Dead barbarians forget the map and lose the money.
Definition at line 82 of file barbarian.cpp.
Referenced by kill_player(), try_summon_barbarians(), and unleash_barbarians().
| bool is_land_barbarian | ( | struct player * | pplayer | ) |
Is player a land barbarian?
Definition at line 60 of file barbarian.cpp.
Referenced by create_barbarian_player(), dai_military_findjob(), raze_city(), and try_summon_barbarians().
| bool is_sea_barbarian | ( | struct player * | pplayer | ) |
Is player a sea barbarian?
Definition at line 69 of file barbarian.cpp.
Referenced by create_barbarian_player().
| void summon_barbarians | ( | ) |
Summon barbarians out of the blue.
Try more times for more difficult levels - which means there can be more than one uprising in one year!
Definition at line 710 of file barbarian.cpp.
Referenced by end_turn().
| bool unleash_barbarians | ( | struct tile * | ptile | ) |
Unleash barbarians means give barbarian player some units and move them out of the hut, unless there's no place to go.
Barbarian unit deployment algorithm: If enough free land around, deploy on land, if not enough land but some sea free, load some of them on boats, otherwise (not much land and no sea) kill enemy unit and stay in a village. The return value indicates if the explorer survived entering the vilage.
Definition at line 248 of file barbarian.cpp.
Referenced by api_edit_unleash_barbarians().