Freeciv-3.2
Loading...
Searching...
No Matches
barbarian.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12***********************************************************************/
13
14#ifndef FC__BARBARIAN_H
15#define FC__BARBARIAN_H
16
17/* utility */
18#include "support.h" /* bool type */
19
20/* common */
21#include "fc_types.h"
22
23#define MIN_UNREST_DIST 5
24#define MAX_UNREST_DIST 8
25
26#define UPRISE_CIV_SIZE 10
27
28#define MAP_FACTOR 2000 /* adjust this to get a good uprising frequency */
29
30#define BARBARIAN_MIN_LIFESPAN 5
31
32bool unleash_barbarians(struct tile *ptile);
33void summon_barbarians(void);
34bool is_land_barbarian(struct player *pplayer);
35bool is_sea_barbarian(struct player *pplayer);
36
37struct player *create_barbarian_player(enum barbarian_type type);
38
40
41#endif /* FC__BARBARIAN_H */
void barbarian_initial_wars(struct player *barbarians)
Definition barbarian.c:765
bool unleash_barbarians(struct tile *ptile)
Definition barbarian.c:272
void summon_barbarians(void)
Definition barbarian.c:738
bool is_sea_barbarian(struct player *pplayer)
Definition barbarian.c:84
bool is_land_barbarian(struct player *pplayer)
Definition barbarian.c:75
struct player * create_barbarian_player(enum barbarian_type type)
Definition barbarian.c:97
char * incite_cost
Definition comments.c:75
GType type
Definition repodlgs.c:1313
Definition tile.h:50