webperimental: killstack decides stack protects.
[freeciv.git] / server / barbarian.h
blob0092417d7c888c2726c99ea6fb2dad76c0c738d3
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.
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 ***********************************************************************/
14 #ifndef FC__BARBARIAN_H
15 #define FC__BARBARIAN_H
17 /* utility */
18 #include "support.h" /* bool type */
20 /* common */
21 #include "fc_types.h"
23 #define MIN_UNREST_DIST 5
24 #define MAX_UNREST_DIST 8
26 #define UPRISE_CIV_SIZE 10
28 #define MAP_FACTOR 2000 /* adjust this to get a good uprising frequency */
30 #define BARBARIAN_MIN_LIFESPAN 5
32 bool unleash_barbarians(struct tile *ptile);
33 void summon_barbarians(void);
34 bool is_land_barbarian(struct player *pplayer);
35 bool is_sea_barbarian(struct player *pplayer);
37 struct player *create_barbarian_player(enum barbarian_type type);
39 #endif /* FC__BARBARIAN_H */