Freeciv-3.3
Loading...
Searching...
No Matches
handicaps.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#ifndef FC__HANDICAPS_H
14#define FC__HANDICAPS_H
15
16/* See handicap_desc() for what these do. */
39
41
42void handicaps_init(struct player *pplayer);
43void handicaps_close(struct player *pplayer);
44
45void handicaps_set(struct player *pplayer, bv_handicap handicaps);
46bool has_handicap(const struct player *pplayer, enum handicap_type htype);
47
48const char *handicap_desc(enum handicap_type htype, bool *inverted);
49
50#endif /* FC__HANDICAPS_H */
#define BV_DEFINE(name, bits)
Definition bitvector.h:140
char * incite_cost
Definition comments.c:76
bool has_handicap(const struct player *pplayer, enum handicap_type htype)
Definition handicaps.c:66
handicap_type
Definition handicaps.h:17
@ H_LAST
Definition handicaps.h:37
@ H_MAP
Definition handicaps.h:28
@ H_REVOLUTION
Definition handicaps.h:30
@ H_DIPLOMACY
Definition handicaps.h:29
@ H_DIPLOMAT
Definition handicaps.h:18
@ H_TARGETS
Definition handicaps.h:24
@ H_LIMITEDHUTS
Definition handicaps.h:20
@ H_RATES
Definition handicaps.h:23
@ H_AWAY
Definition handicaps.h:19
@ H_HUTS
Definition handicaps.h:25
@ H_EXPERIMENTAL
Definition handicaps.h:22
@ H_DEFENSIVE
Definition handicaps.h:21
@ H_DANGER
Definition handicaps.h:32
@ H_NOBRIBE_WF
Definition handicaps.h:34
@ H_NOPLANES
Definition handicaps.h:27
@ H_FOG
Definition handicaps.h:26
@ H_PRODCHGPEN
Definition handicaps.h:35
@ H_EXPANSION
Definition handicaps.h:31
@ H_CEASEFIRE
Definition handicaps.h:33
@ H_ASSESS_DANGER_LIMITED
Definition handicaps.h:36
void handicaps_init(struct player *pplayer)
Definition handicaps.c:29
void handicaps_close(struct player *pplayer)
Definition handicaps.c:42
const char * handicap_desc(enum handicap_type htype, bool *inverted)
Definition handicaps.c:80
void handicaps_set(struct player *pplayer, bv_handicap handicaps)
Definition handicaps.c:55