Freeciv21
Develop your civilization from humble roots to a global empire
barbarian.h
Go to the documentation of this file.
1 /*__ ___ ***************************************
2 / \ / \ Copyright (c) 1996-2020 Freeciv21 and Freeciv
3 \_ \ / __/ contributors. This file is part of Freeciv21.
4  _\ \ / /__ Freeciv21 is free software: you can redistribute it
5  \___ \____/ __/ and/or modify it under the terms of the GNU General
6  \_ _/ Public License as published by the Free Software
7  | @ @ \_ Foundation, either version 3 of the License,
8  | or (at your option) any later version.
9  _/ /\ You should have received a copy of the GNU
10  /o) (o/\ \_ General Public License along with Freeciv21.
11  \_____/ / If not, see https://www.gnu.org/licenses/.
12  \____/ ********************************************************/
13 
14 #pragma once
15 
16 // utility
17 #include "support.h" // bool type
18 
19 // common
20 #include "fc_types.h"
21 
22 #define MIN_UNREST_DIST 5
23 #define MAX_UNREST_DIST 8
24 
25 #define UPRISE_CIV_SIZE 10
26 
27 #define MAP_FACTOR 2000 // adjust this to get a good uprising frequency
28 
29 #define BARBARIAN_MIN_LIFESPAN 5
30 
31 bool unleash_barbarians(struct tile *ptile);
32 void summon_barbarians();
33 bool is_land_barbarian(struct player *pplayer);
34 bool is_sea_barbarian(struct player *pplayer);
35 
36 struct player *create_barbarian_player(enum barbarian_type type);
struct player * create_barbarian_player(enum barbarian_type type)
Creates the land/sea barbarian player and inits some stuff.
Definition: barbarian.cpp:82
bool unleash_barbarians(struct tile *ptile)
Unleash barbarians means give barbarian player some units and move them out of the hut,...
Definition: barbarian.cpp:248
bool is_sea_barbarian(struct player *pplayer)
Is player a sea barbarian?
Definition: barbarian.cpp:69
void summon_barbarians()
Summon barbarians out of the blue.
Definition: barbarian.cpp:710
bool is_land_barbarian(struct player *pplayer)
Is player a land barbarian?
Definition: barbarian.cpp:60
Definition: player.h:231
Definition: tile.h:42