7 #if !defined(_AUTOPILOT_H_)
16 #define NPS_TICKRATE 125
18 #define MAX_NAVPOINTS 8
20 #define NP_WAYPOINT 0x0001 // Nav Point is bound to the position of a single node of a waypoint path
21 #define NP_SHIP 0x0002 // Nav Point is bound to the position of a certain ship
22 #define NP_HIDDEN 0x0004 // Nav Point doesn't show on map and isn't selectable
23 #define NP_NOACCESS 0x0008 // Nav Point isn't selectable
24 #define NP_VISITED 0x0100 // Whether we've been within 1,000 meters of this waypoint
26 #define NP_NOSELECT ( NP_HIDDEN | NP_NOACCESS )
27 #define NP_VALIDTYPE ( NP_WAYPOINT | NP_SHIP )
52 #define NP_MSG_FAIL_NOSEL 0
53 #define NP_MSG_FAIL_GLIDING 1
54 #define NP_MSG_FAIL_TOCLOSE 2
55 #define NP_MSG_FAIL_HOSTILES 3
56 #define NP_MSG_MISC_LINKED 4
57 #define NP_MSG_FAIL_HAZARD 5
58 #define NP_MSG_FAIL_SUPPORT_PRESENT 6
59 #define NP_MSG_FAIL_SUPPORT_WORKING 7
60 #define NP_NUM_MESSAGES 8
bool Nav_UnSet_Flag(char *Nav, int flag)
NavPoint Navs[MAX_NAVPOINTS]
bool Nav_Set_Flag(char *Nav, int flag)
bool AddNav_Waypoint(char *Nav, char *WP_Path, int node, int flags)
bool Nav_Alt_Flags(char *Nav, int flags)
GLenum GLuint GLenum GLsizei const GLchar * message
bool AddNav_Ship(char *Nav, char *TargetName, int flags)
SCP_map< int, int > autopilot_wings
bool Nav_UnSet_Hidden(char *Nav)
void send_autopilot_msg(char *msg, char *snd=NULL)
bool Nav_UnSet_NoAccess(char *Nav)
unsigned int DistanceTo(char *nav)
void send_autopilot_msgID(int msgid)
bool Nav_UnSet_Visited(char *Nav)
void parse_autopilot_table(char *filename)
bool CanAutopilot(vec3d targetPos, bool send_msg=false)
bool Nav_Set_Hidden(char *Nav)
bool DelNavPoint(char *Nav)
bool Nav_Set_NoAccess(char *Nav)
bool IsVisited(char *nav)
NavMessage NavMsgs[NP_NUM_MESSAGES]
bool Nav_Set_Visited(char *Nav)
void SelectNav(char *Nav)