FS2_Open
Open source remastering of the Freespace 2 engine
|
#include "ai/aigoals.h"
#include "globalincs/linklist.h"
#include "mission/missionlog.h"
#include "mission/missionparse.h"
#include "network/multi.h"
#include "network/multimsgs.h"
#include "object/object.h"
#include "object/objectdock.h"
#include "object/waypoint.h"
#include "parse/sexp.h"
#include "playerman/player.h"
#include "ship/ship.h"
#include "weapon/weapon.h"
Go to the source code of this file.
Macros | |
#define | PLAYER_PRIORITY_MIN 90 |
#define | PLAYER_PRIORITY_SHIP 100 |
#define | PLAYER_PRIORITY_WING 95 |
#define | PLAYER_PRIORITY_SUPPORT_LOW 10 |
#define | MAX_GOAL_PRIORITY 200 |
#define | PURGE_GOALS_ALL_SHIPS (AI_GOAL_IGNORE | AI_GOAL_DISABLE_SHIP | AI_GOAL_DISARM_SHIP) |
#define | PURGE_GOALS_ONE_SHIP (AI_GOAL_IGNORE_NEW) |
#define | AI_GOAL_ACHIEVABLE 1 |
#define | AI_GOAL_NOT_ACHIEVABLE 2 |
#define | AI_GOAL_NOT_KNOWN 3 |
#define | AI_GOAL_SATISFIED 4 |
#define | SHIP_STATUS_GONE 1 |
#define | SHIP_STATUS_NOT_ARRIVED 2 |
#define | SHIP_STATUS_ARRIVED 3 |
#define | SHIP_STATUS_UNKNOWN 4 |
Variables | |
int | Ai_goal_signature |
int | Num_ai_dock_names = 0 |
char | Ai_dock_names [MAX_AI_DOCK_NAMES][NAME_LENGTH] |
ai_goal_list | Ai_goal_names [] |
int | Num_ai_goals = sizeof(Ai_goal_names) / sizeof(ai_goal_list) |
char * | Mode_text [MAX_AI_BEHAVIORS] |
#define AI_GOAL_ACHIEVABLE 1 |
Definition at line 53 of file aigoals.cpp.
#define AI_GOAL_NOT_ACHIEVABLE 2 |
Definition at line 54 of file aigoals.cpp.
#define AI_GOAL_NOT_KNOWN 3 |
Definition at line 55 of file aigoals.cpp.
#define AI_GOAL_SATISFIED 4 |
Definition at line 56 of file aigoals.cpp.
#define MAX_GOAL_PRIORITY 200 |
Definition at line 40 of file aigoals.cpp.
#define PLAYER_PRIORITY_MIN 90 |
Definition at line 35 of file aigoals.cpp.
#define PLAYER_PRIORITY_SHIP 100 |
Definition at line 36 of file aigoals.cpp.
#define PLAYER_PRIORITY_SUPPORT_LOW 10 |
Definition at line 38 of file aigoals.cpp.
#define PLAYER_PRIORITY_WING 95 |
Definition at line 37 of file aigoals.cpp.
#define PURGE_GOALS_ALL_SHIPS (AI_GOAL_IGNORE | AI_GOAL_DISABLE_SHIP | AI_GOAL_DISARM_SHIP) |
Definition at line 46 of file aigoals.cpp.
#define PURGE_GOALS_ONE_SHIP (AI_GOAL_IGNORE_NEW) |
Definition at line 47 of file aigoals.cpp.
#define SHIP_STATUS_ARRIVED 3 |
Definition at line 1359 of file aigoals.cpp.
#define SHIP_STATUS_GONE 1 |
Definition at line 1357 of file aigoals.cpp.
#define SHIP_STATUS_NOT_ARRIVED 2 |
Definition at line 1358 of file aigoals.cpp.
#define SHIP_STATUS_UNKNOWN 4 |
Definition at line 1360 of file aigoals.cpp.
char* ai_add_dock_name | ( | const char * | str | ) |
Definition at line 2427 of file aigoals.cpp.
void ai_add_goal_ship_internal | ( | ai_info * | aip, |
int | goal_type, | ||
char * | name, | ||
int | docker_point, | ||
int | dockee_point, | ||
int | immediate | ||
) |
Definition at line 1244 of file aigoals.cpp.
Definition at line 611 of file aigoals.cpp.
void ai_add_goal_sub_scripting | ( | int | type, |
int | mode, | ||
int | submode, | ||
int | priority, | ||
char * | target_name, | ||
ai_goal * | aigp | ||
) |
Definition at line 705 of file aigoals.cpp.
Definition at line 807 of file aigoals.cpp.
Definition at line 1324 of file aigoals.cpp.
Definition at line 757 of file aigoals.cpp.
void ai_add_ship_goal_scripting | ( | int | mode, |
int | submode, | ||
int | priority, | ||
char * | shipname, | ||
ai_info * | aip | ||
) |
Definition at line 730 of file aigoals.cpp.
Definition at line 1201 of file aigoals.cpp.
Definition at line 783 of file aigoals.cpp.
Definition at line 1210 of file aigoals.cpp.
Definition at line 251 of file aigoals.cpp.
Definition at line 270 of file aigoals.cpp.
Definition at line 1340 of file aigoals.cpp.
Definition at line 1017 of file aigoals.cpp.
Definition at line 488 of file aigoals.cpp.
Definition at line 665 of file aigoals.cpp.
Definition at line 539 of file aigoals.cpp.
Definition at line 691 of file aigoals.cpp.
Definition at line 1844 of file aigoals.cpp.
Definition at line 465 of file aigoals.cpp.
void ai_goal_purge_invalid_goals | ( | ai_goal * | aigp, |
ai_goal * | goal_list, | ||
ai_info * | aip, | ||
int | ai_wingnum | ||
) |
Definition at line 377 of file aigoals.cpp.
const char* Ai_goal_text | ( | int | goal | ) |
Definition at line 96 of file aigoals.cpp.
Definition at line 134 of file aigoals.cpp.
Definition at line 1365 of file aigoals.cpp.
Definition at line 360 of file aigoals.cpp.
Definition at line 300 of file aigoals.cpp.
void ai_post_process_mission | ( | ) |
Definition at line 159 of file aigoals.cpp.
Definition at line 1977 of file aigoals.cpp.
Determines if a goal is valid for a particular type of ship
ship | Ship type to test |
ai_goal_type | Goal type to test |
Definition at line 208 of file aigoals.cpp.
Definition at line 1037 of file aigoals.cpp.
Definition at line 231 of file aigoals.cpp.
Definition at line 1175 of file aigoals.cpp.
void ai_update_goal_references | ( | ai_goal * | goals, |
int | type, | ||
const char * | old_name, | ||
const char * | new_name | ||
) |
Definition at line 2295 of file aigoals.cpp.
Definition at line 1892 of file aigoals.cpp.
Definition at line 2362 of file aigoals.cpp.
Definition at line 1902 of file aigoals.cpp.
char Ai_dock_names[MAX_AI_DOCK_NAMES][NAME_LENGTH] |
Definition at line 60 of file aigoals.cpp.
ai_goal_list Ai_goal_names[] |
Definition at line 62 of file aigoals.cpp.
int Ai_goal_signature |
Definition at line 58 of file aigoals.cpp.
char* Mode_text[MAX_AI_BEHAVIORS] |
Definition at line 108 of file aicode.cpp.
int Num_ai_dock_names = 0 |
Definition at line 59 of file aigoals.cpp.
int Num_ai_goals = sizeof(Ai_goal_names) / sizeof(ai_goal_list) |
Definition at line 90 of file aigoals.cpp.