~ubuntu-branches/debian/sid/freeciv/sid

« back to all changes in this revision

Viewing changes to common/ai.c

  • Committer: Bazaar Package Importer
  • Author(s): Clint Adams, Karl Goetz, Clint Adams
  • Date: 2010-02-23 22:09:02 UTC
  • mfrom: (7.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100223220902-s3spqi1x4e190y0t
[ Karl Goetz ]
* Remove civserver files in /etc/ggzd/ (Closes: 523772, 517787)
* Adding ${misc:Depends} to all binary packages (lintian warnings)

[ Clint Adams ]
* New upstream version.
  - Drop data_dsc_use_bindir.diff (binary pathnames have changed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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)
 
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 <config.h>
 
16
#endif
 
17
 
 
18
#include <assert.h>
 
19
 
 
20
/* utility */
 
21
#include "fcintl.h"
 
22
#include "log.h"
 
23
 
 
24
/* common */
 
25
#include "ai.h"
 
26
 
 
27
static struct ai_type default_ai;
 
28
 
 
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)
 
34
{
 
35
  assert(id == AI_DEFAULT);
 
36
 
 
37
  return &default_ai;
 
38
}
 
39
 
 
40
/***************************************************************
 
41
  Initializes AI structure.
 
42
***************************************************************/
 
43
void init_ai(struct ai_type *ai)
 
44
{
 
45
  memset(ai, 0, sizeof(*ai));
 
46
}