Freeciv21
Develop your civilization from humble roots to a global empire
animals.cpp File Reference
#include "ai.h"
#include "game.h"
#include "map.h"
#include "movement.h"
#include "nation.h"
#include "player.h"
#include "research.h"
#include "tile.h"
#include "unittype.h"
#include "aiiface.h"
#include "plrhand.h"
#include "srv_main.h"
#include "techtools.h"
#include "unittools.h"
#include "difficulty.h"
#include "animals.h"
+ Include dependency graph for animals.cpp:

Go to the source code of this file.

Functions

static const struct unit_typeanimal_for_terrain (struct terrain *pterr)
 Return suitable animal type for the terrain. More...
 
static void place_animal (struct player *plr)
 Try to add one animal to the map. More...
 
void create_animals ()
 Create animal kingdom player and his units. More...
 

Function Documentation

◆ animal_for_terrain()

static const struct unit_type* animal_for_terrain ( struct terrain pterr)
static

Return suitable animal type for the terrain.

Definition at line 40 of file animals.cpp.

Referenced by place_animal().

◆ create_animals()

void create_animals ( )

Create animal kingdom player and his units.

Definition at line 91 of file animals.cpp.

Referenced by srv_ready().

◆ place_animal()

static void place_animal ( struct player plr)
static

Try to add one animal to the map.

Definition at line 48 of file animals.cpp.

Referenced by create_animals().