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 | f56e630e5cb839b307f04bf52465c4db4d1ad904 (patch) | |
tree | 69fb7ae1d9bdadb9e7386cb70b0a26621ad9b57f /src/ai/ai.h | |
parent | dba193d4a54707a19d8f3c2f42a1ac10ff544c5c (diff) | |
download | openttd-f56e630e5cb839b307f04bf52465c4db4d1ad904.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(); |