FS2_Open
Open source remastering of the Freespace 2 engine
|
Go to the source code of this file.
Functions | |
int | ai_get_slot (int shipnum) |
Returns index of free AI slot. More... | |
void | ai_free_slot (int ai_index) |
Frees a currently used AI slot. More... | |
int | get_wingnum (int objnum) |
void | set_wingnum (int objnum, int wingnum) |
char * | ai_get_goal_target_name (const char *name, int *index) |
Variables | |
int | Total_goal_target_names = 0 |
char | Goal_target_names [MAX_GOAL_TARGET_NAMES][NAME_LENGTH] |
ai_info | Ai_info [MAX_AI_INFO] |
ai_info * | Player_ai |
The code in here is just for bookeeping, allocating AI slots and linking them to ships. See AiCode.cpp for the actual AI code.
Definition in file ai.cpp.
char* ai_get_goal_target_name | ( | const char * | name, |
int * | index | ||
) |
ai_info Ai_info[MAX_AI_INFO] |
char Goal_target_names[MAX_GOAL_TARGET_NAMES][NAME_LENGTH] |