Freeciv-3.1: /fast/freeciv/nightly/S3_1/ai/default/daidiplomacy.h Source File

Freeciv-3.1

Loading...
Searching...
No Matches
daidiplomacy.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 2003 - The Freeciv Team
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__DAIDIPLOMACY_H
14#define FC__DAIDIPLOMACY_H
15
16#include "fc_types.h"
17
18#include "ai.h" /* incident_type */
19
20struct Treaty;
21struct Clause;
22struct ai_data;
23
24void dai_diplomacy_begin_new_phase(struct ai_type *ait, struct player *pplayer);
25void dai_diplomacy_actions(struct ai_type *ait, struct player *pplayer);
26
27void dai_treaty_evaluate(struct ai_type *ait, struct player *pplayer,
28 struct player *aplayer, struct Treaty *ptreaty);
29void dai_treaty_accepted(struct ai_type *ait, struct player *pplayer,
30 struct player *aplayer, struct Treaty *ptreaty);
31
32void dai_incident(struct ai_type *ait, enum incident_type type,
33 enum casus_belli_range scope,
34 const struct action *paction,
35 struct player *receiver,
36 struct player *violator, struct player *victim);
37
38bool dai_on_war_footing(struct ai_type *ait, struct player *pplayer);
39
40void dai_diplomacy_first_contact(struct ai_type *ait, struct player *pplayer,
41 struct player *aplayer);
42
43#endif /* FC__DAIDIPLOMACY_H */
ai.h
incident_type
incident_type
Definition ai.h:45
dai_treaty_accepted
void dai_treaty_accepted(struct ai_type *ait, struct player *pplayer, struct player *aplayer, struct Treaty *ptreaty)
Definition daidiplomacy.c:727
dai_incident
void dai_incident(struct ai_type *ait, enum incident_type type, enum casus_belli_range scope, const struct action *paction, struct player *receiver, struct player *violator, struct player *victim)
Definition daidiplomacy.c:1930
dai_on_war_footing
bool dai_on_war_footing(struct ai_type *ait, struct player *pplayer)
Definition daidiplomacy.c:1915
dai_diplomacy_actions
void dai_diplomacy_actions(struct ai_type *ait, struct player *pplayer)
Definition daidiplomacy.c:1540
dai_diplomacy_begin_new_phase
void dai_diplomacy_begin_new_phase(struct ai_type *ait, struct player *pplayer)
Definition daidiplomacy.c:1001
dai_treaty_evaluate
void dai_treaty_evaluate(struct ai_type *ait, struct player *pplayer, struct player *aplayer, struct Treaty *ptreaty)
Definition daidiplomacy.c:607
dai_diplomacy_first_contact
void dai_diplomacy_first_contact(struct ai_type *ait, struct player *pplayer, struct player *aplayer)
Definition daidiplomacy.c:947
fc_types.h
type
GType type
Definition repodlgs.c:1312
Clause
Definition diptreaty.h:70
Treaty
Definition diptreaty.h:76
action
Definition actions.h:379
ai_type
Definition ai.h:50
player
Definition player.h:249