Freeciv-3.2
Loading...
Searching...
No Matches
stubai.c
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
14#ifdef HAVE_CONFIG_H
15#include <fc_config.h>
16#endif
17
18/* common */
19#include "ai.h"
20#include "player.h"
21
22const char *fc_ai_stub_capstr(void);
23bool fc_ai_stub_setup(struct ai_type *ai);
24
25/**********************************************************************/
28const char *fc_ai_stub_capstr(void)
29{
30 return FC_AI_MOD_CAPSTR;
31}
32
33/**********************************************************************/
36static void stub_end_turn(struct player *pplayer)
37{
38 pplayer->ai_phase_done = TRUE;
39}
40
41/**********************************************************************/
44bool fc_ai_stub_setup(struct ai_type *ai)
45{
46 strncpy(ai->name, "stub", sizeof(ai->name));
47
50
51 return TRUE;
52}
#define FC_AI_MOD_CAPSTR
Definition ai.h:27
char * incite_cost
Definition comments.c:75
Definition ai.h:50
void(* restart_phase)(struct player *pplayer)
Definition ai.h:250
struct ai_type::@14 funcs
char name[MAX_LEN_NAME]
Definition ai.h:51
void(* first_activities)(struct player *pplayer)
Definition ai.h:247
bool ai_phase_done
Definition player.h:262
bool fc_ai_stub_setup(struct ai_type *ai)
Definition stubai.c:44
const char * fc_ai_stub_capstr(void)
Definition stubai.c:28
static void stub_end_turn(struct player *pplayer)
Definition stubai.c:36
#define TRUE
Definition support.h:46