Freeciv-3.3: /fast/freeciv/nightly/main/ai/default/daidiplomacy.h Source File

Freeciv-3.3

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/* common */
17#include "fc_types.h"
18
19#include "ai.h" /* incident_type */
20
21struct Treaty;
22struct Clause;
23struct ai_data;
24
25void dai_diplomacy_begin_new_phase(struct ai_type *ait, struct player *pplayer);
26void dai_diplomacy_actions(struct ai_type *ait, struct player *pplayer);
27
28void dai_treaty_evaluate(struct ai_type *ait, struct player *pplayer,
29 struct player *aplayer, struct Treaty *ptreaty);
30void dai_treaty_accepted(struct ai_type *ait, struct player *pplayer,
31 struct player *aplayer, struct Treaty *ptreaty);
32
33void dai_incident(struct ai_type *ait, enum incident_type type,
34 enum casus_belli_range scope,
35 const struct action *paction,
36 struct player *receiver,
37 struct player *violator, struct player *victim);
38
39bool dai_on_war_footing(struct ai_type *ait, struct player *pplayer);
40
41void dai_diplomacy_first_contact(struct ai_type *ait, struct player *pplayer,
42 struct player *aplayer);
43
44void dai_revolution_start(struct ai_type *ait, struct player *pplayer);
45
46#endif /* FC__DAIDIPLOMACY_H */
ai.h
incident_type
incident_type
Definition ai.h:45
incite_cost
char * incite_cost
Definition comments.c:74
dai_treaty_accepted
void dai_treaty_accepted(struct ai_type *ait, struct player *pplayer, struct player *aplayer, struct Treaty *ptreaty)
Definition daidiplomacy.c:740
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:1978
dai_on_war_footing
bool dai_on_war_footing(struct ai_type *ait, struct player *pplayer)
Definition daidiplomacy.c:1963
dai_revolution_start
void dai_revolution_start(struct ai_type *ait, struct player *pplayer)
Definition daidiplomacy.c:1441
dai_diplomacy_actions
void dai_diplomacy_actions(struct ai_type *ait, struct player *pplayer)
Definition daidiplomacy.c:1588
dai_diplomacy_begin_new_phase
void dai_diplomacy_begin_new_phase(struct ai_type *ait, struct player *pplayer)
Definition daidiplomacy.c:1014
dai_treaty_evaluate
void dai_treaty_evaluate(struct ai_type *ait, struct player *pplayer, struct player *aplayer, struct Treaty *ptreaty)
Definition daidiplomacy.c:620
dai_diplomacy_first_contact
void dai_diplomacy_first_contact(struct ai_type *ait, struct player *pplayer, struct player *aplayer)
Definition daidiplomacy.c:960
ptreaty
struct Treaty * ptreaty
Definition diplodlg_g.h:28
fc_types.h
type
GType type
Definition repodlgs.c:1313
Clause
Definition diptreaty.h:73
Treaty
Definition diptreaty.h:79
action
Definition actions.h:106
ai_type
Definition ai.h:50
player
Definition player.h:249