summaryrefslogtreecommitdiff
path: root/src/ai/ai.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-03-07 12:11:48 +0000
committerrubidium <rubidium@openttd.org>2007-03-07 12:11:48 +0000
commit979ccd45baa9a38169661ba379a341cae8619c3b (patch)
tree757477dbdc02025cc29690a4e66e40f872cab02b /src/ai/ai.h
parent4169bfba0604b33bad92389bd3eb6f9acde89f49 (diff)
downloadopenttd-979ccd45baa9a38169661ba379a341cae8619c3b.tar.xz
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
Diffstat (limited to 'src/ai/ai.h')
-rw-r--r--src/ai/ai.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ai/ai.h b/src/ai/ai.h
index 424bfc2ef..c1d0726c3 100644
--- a/src/ai/ai.h
+++ b/src/ai/ai.h
@@ -7,7 +7,7 @@
#include "../command.h"
/* How DoCommands look like for an AI */
-typedef struct AICommand {
+struct AICommand {
uint32 tile;
uint32 p1;
uint32 p2;
@@ -17,22 +17,22 @@ typedef struct AICommand {
char *text;
uint uid;
- struct AICommand *next;
-} AICommand;
+ AICommand *next;
+};
/* The struct for an AIScript Player */
-typedef struct AIPlayer {
+struct AIPlayer {
bool active; ///< Is this AI active?
AICommand *queue; ///< The commands that he has in his queue
AICommand *queue_tail; ///< The tail of this queue
-} AIPlayer;
+};
/* The struct to keep some data about the AI in general */
-typedef struct AIStruct {
+struct AIStruct {
/* General */
bool enabled; ///< Is AI enabled?
uint tick; ///< The current tick (something like _frame_counter, only for AIs)
-} AIStruct;
+};
VARDEF AIStruct _ai;
VARDEF AIPlayer _ai_player[MAX_PLAYERS];