diff options
author | rubidium <rubidium@openttd.org> | 2008-09-30 20:39:50 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-09-30 20:39:50 +0000 |
commit | 3b798599b63067c2e92aa49906ea66a07ae8de44 (patch) | |
tree | 69fb7ae1d9bdadb9e7386cb70b0a26621ad9b57f /src/ai/ai.h | |
parent | cc1e761edab14f8264dba44d09f7272d931bdd93 (diff) | |
download | openttd-3b798599b63067c2e92aa49906ea66a07ae8de44.tar.xz |
(svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with.
Diffstat (limited to 'src/ai/ai.h')
-rw-r--r-- | src/ai/ai.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ai/ai.h b/src/ai/ai.h index e7c1b1f64..89cddea11 100644 --- a/src/ai/ai.h +++ b/src/ai/ai.h @@ -24,8 +24,8 @@ struct AICommand { AICommand *next; }; -/* The struct for an AIScript Player */ -struct AIPlayer { +/* The struct for an AIScript Company */ +struct AICompany { bool active; ///< Is this AI active? AICommand *queue; ///< The commands that he has in his queue AICommand *queue_tail; ///< The tail of this queue @@ -39,11 +39,11 @@ struct AIStruct { }; extern AIStruct _ai; -extern AIPlayer _ai_player[MAX_PLAYERS]; +extern AICompany _ai_company[MAX_COMPANIES]; // ai.c -void AI_StartNewAI(PlayerID player); -void AI_PlayerDied(PlayerID player); +void AI_StartNewAI(CompanyID company); +void AI_CompanyDied(CompanyID company); void AI_RunGameLoop(); void AI_Initialize(); void AI_Uninitialize(); |