Freeciv-3.1: /fast/freeciv/nightly/S3_1/server/animals.c File Reference

Freeciv-3.1

Loading...
Searching...
No Matches
Functions
animals.c File Reference
`#include "ai.h"`
`#include "game.h"`
`#include "map.h"`
`#include "movement.h"`
`#include "player.h"`
`#include "research.h"`
`#include "tech.h"`
`#include "tile.h"`
`#include "unittype.h"`
`#include "aiiface.h"`
`#include "barbarian.h"`
`#include "plrhand.h"`
`#include "srv_main.h"`
`#include "stdinhand.h"`
`#include "techtools.h"`
`#include "unittools.h"`
`#include "difficulty.h"`
`#include "animals.h"`

Go to the source code of this file.

## Functions

static const struct unit_type * | animal_for_terrain (struct terrain *pterr)
static void | place_animal (struct player *plr, int sqrdist)
void | create_animals (void)

## 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 46 of file animals.c.

Referenced by place_animal().

## ◆ create_animals()

void create_animals | ( | void |  | ) |

Create animal kingdom player and their units.

Definition at line 95 of file animals.c.

Referenced by srv_ready().

## ◆ place_animal()

static void place_animal | ( | struct player * | plr,
|  | int | sqrdist
| ) |  |

static

Try to add one animal to the map.

Definition at line 54 of file animals.c.

Referenced by create_animals().