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

« back to all changes in this revision

Viewing changes to ai/ailog.h

  • Committer: Package Import Robot
  • Author(s): Clint Adams, Karl Goetz, Clint Adams
  • Date: 2011-08-28 22:40:00 UTC
  • mfrom: (1.2.19 upstream)
  • Revision ID: package-import@ubuntu.com-20110828224000-j2r1erewlem25dox
Tags: 2.3.0-1
[ Karl Goetz ]
* New upstream version.
* Fix themes_sdl_use_system_fonts.diff to apply cleanly on 2.3.0
* Massage work_around_unity_induced_breakage.diff to get it
  applying to the new codebase (The patch assumes commits made
  after 2.3.0 was tagged upstream).

[ Clint Adams ]
* Fudge build system to think there is no libtool mismatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
 
#ifndef FC__AILOG_H
14
 
#define FC__AILOG_H
15
 
 
16
 
#include "fc_types.h"
17
 
 
18
 
#include "gotohand.h"           /* enum goto_result */
19
 
 
20
 
struct ai_data;
21
 
 
22
 
/* 
23
 
 * Change these and remake to watch logs from a specific 
24
 
 * part of the AI code.
25
 
 */
26
 
#define LOGLEVEL_BODYGUARD LOG_DEBUG
27
 
#define LOGLEVEL_UNIT LOG_DEBUG
28
 
#define LOGLEVEL_GOTO LOG_DEBUG
29
 
#define LOGLEVEL_CITY LOG_DEBUG
30
 
#define LOGLEVEL_BUILD LOG_DEBUG
31
 
#define LOGLEVEL_HUNT LOG_DEBUG
32
 
#define LOGLEVEL_PLAYER LOG_DEBUG
33
 
#define LOGLEVEL_TECH LOG_DEBUG
34
 
 
35
 
enum ai_timer {
36
 
  AIT_ALL,
37
 
  AIT_MOVEMAP,
38
 
  AIT_UNITS,
39
 
  AIT_SETTLERS,
40
 
  AIT_WORKERS,
41
 
  AIT_AIDATA,
42
 
  AIT_GOVERNMENT,
43
 
  AIT_TAXES,
44
 
  AIT_CITIES,
45
 
  AIT_CITIZEN_ARRANGE,
46
 
  AIT_BUILDINGS,
47
 
  AIT_DANGER,
48
 
  AIT_TECH,
49
 
  AIT_FSTK,
50
 
  AIT_DEFENDERS,
51
 
  AIT_CARAVAN,
52
 
  AIT_HUNTER,
53
 
  AIT_AIRLIFT,
54
 
  AIT_DIPLOMAT,
55
 
  AIT_AIRUNIT,
56
 
  AIT_EXPLORER,
57
 
  AIT_EMERGENCY,
58
 
  AIT_CITY_MILITARY,
59
 
  AIT_CITY_TERRAIN,
60
 
  AIT_CITY_SETTLERS,
61
 
  AIT_ATTACK,
62
 
  AIT_MILITARY,
63
 
  AIT_RECOVER,
64
 
  AIT_BODYGUARD,
65
 
  AIT_FERRY,
66
 
  AIT_RAMPAGE,
67
 
  AIT_LAST
68
 
};
69
 
 
70
 
enum ai_timer_activity  {
71
 
  TIMER_START, TIMER_STOP
72
 
};
73
 
 
74
 
void TECH_LOG(int level, const struct player *pplayer,
75
 
              struct advance *padvance, const char *msg, ...)
76
 
     fc__attribute((__format__ (__printf__, 4, 5)));
77
 
void DIPLO_LOG(int level, const struct player *pplayer,
78
 
               const struct player *aplayer, const char *msg, ...)
79
 
     fc__attribute((__format__ (__printf__, 4, 5)));
80
 
void CITY_LOG(int level, const struct city *pcity, const char *msg, ...)
81
 
     fc__attribute((__format__ (__printf__, 3, 4)));
82
 
void UNIT_LOG(int level, const struct unit *punit, const char *msg, ...)
83
 
     fc__attribute((__format__ (__printf__, 3, 4)));
84
 
void BODYGUARD_LOG(int level, const struct unit *punit, const char *msg);
85
 
void TIMING_LOG(enum ai_timer timer, enum ai_timer_activity activity);
86
 
void TIMING_RESULTS(void);
87
 
 
88
 
#endif  /* FC__AILOG_H */