Do not return NULL as boolean from wonder_is_lost() nor wonder_is_built()
[freeciv.git] / server / barbarian.h
blobc664fda1cdfd940caa1e7900e937423a2bd39966
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 #include "support.h" /* bool type */
19 #include "fc_types.h"
21 #define MIN_UNREST_DIST 5
22 #define MAX_UNREST_DIST 8
24 #define UPRISE_CIV_SIZE 10
26 #define MAP_FACTOR 2000 /* adjust this to get a good uprising frequency */
28 #define BARBARIAN_MIN_LIFESPAN 5
30 bool unleash_barbarians(struct tile *ptile);
31 void summon_barbarians(void);
32 bool is_land_barbarian(struct player *pplayer);
33 bool is_sea_barbarian(struct player *pplayer);
35 struct player *create_barbarian_player(enum barbarian_type type);
37 #endif /* FC__BARBARIAN_H */