1
/****************************************************************************
2
Freeciv - Copyright (C) 2004 - 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)
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
****************************************************************************/
27
static struct ai_type default_ai;
29
/***************************************************************
30
Returns ai_type of given id. Currently only one ai_type,
31
id AI_DEFAULT, is supported.
32
***************************************************************/
33
struct ai_type *get_ai_type(int id)
35
assert(id == AI_DEFAULT);
40
/***************************************************************
41
Initializes AI structure.
42
***************************************************************/
43
void init_ai(struct ai_type *ai)
45
memset(ai, 0, sizeof(*ai));