Open source remastering of the Freespace 2 engine
waypoint.cpp File Reference
#include <ctype.h>
#include "globalincs/linklist.h"
#include "object/object.h"
#include "object/waypoint.h"

Go to the source code of this file.


void waypoint_parse_init ()
void waypoint_level_close ()
int calc_waypoint_instance (int waypoint_list_index, int waypoint_index)
void calc_waypoint_indexes (int waypoint_instance, int &waypoint_list_index, int &waypoint_index)
int calc_waypoint_list_index (int waypoint_instance)
int calc_waypoint_index (int waypoint_instance)
void waypoint_create_game_object (waypoint *wpt, int list_index, int wpt_index)
void waypoint_create_game_objects ()
waypoint_listfind_matching_waypoint_list (const char *name)
waypointfind_matching_waypoint (const char *name)
waypointfind_waypoint_with_objnum (int objnum)
waypoint_listfind_waypoint_list_with_instance (int waypoint_instance, int *waypoint_index)
waypointfind_waypoint_with_instance (int waypoint_instance)
waypoint_listfind_waypoint_list_at_index (int index)
waypointfind_waypoint_at_index (waypoint_list *list, int index)
int find_index_of_waypoint_list (waypoint_list *wp_list)
int find_index_of_waypoint (waypoint_list *wp_list, waypoint *wpt)
void waypoint_find_unique_name (char *dest_name, int start_index)
void waypoint_add_list (const char *name, SCP_vector< vec3d > &vec_list)
int waypoint_add (vec3d *pos, int waypoint_instance)
void waypoint_remove (waypoint *wpt)


SCP_list< waypoint_listWaypoint_lists
const size_t INVALID_WAYPOINT_POSITION = (size_t) -1

Function Documentation

int calc_waypoint_index ( int  waypoint_instance)

Definition at line 131 of file waypoint.cpp.

void calc_waypoint_indexes ( int  waypoint_instance,
int waypoint_list_index,
int waypoint_index 

Definition at line 118 of file waypoint.cpp.

int calc_waypoint_instance ( int  waypoint_list_index,
int  waypoint_index 

Definition at line 111 of file waypoint.cpp.

int calc_waypoint_list_index ( int  waypoint_instance)

Definition at line 125 of file waypoint.cpp.

int find_index_of_waypoint ( waypoint_list wp_list,
waypoint wpt 

Definition at line 340 of file waypoint.cpp.

int find_index_of_waypoint_list ( waypoint_list wp_list)

Definition at line 324 of file waypoint.cpp.

waypoint* find_matching_waypoint ( const char *  name)

Definition at line 179 of file waypoint.cpp.

waypoint_list* find_matching_waypoint_list ( const char *  name)

Definition at line 164 of file waypoint.cpp.

waypoint* find_waypoint_at_index ( waypoint_list list,
int  index 

Definition at line 307 of file waypoint.cpp.

waypoint_list* find_waypoint_list_at_index ( int  index)

Definition at line 291 of file waypoint.cpp.

waypoint_list* find_waypoint_list_with_instance ( int  waypoint_instance,
int waypoint_index 

Definition at line 254 of file waypoint.cpp.

waypoint* find_waypoint_with_instance ( int  waypoint_instance)

Definition at line 279 of file waypoint.cpp.

waypoint* find_waypoint_with_objnum ( int  objnum)

Definition at line 234 of file waypoint.cpp.

int waypoint_add ( vec3d pos,
int  waypoint_instance 

Definition at line 401 of file waypoint.cpp.

void waypoint_add_list ( const char *  name,
SCP_vector< vec3d > &  vec_list 

Definition at line 374 of file waypoint.cpp.

void waypoint_create_game_object ( waypoint wpt,
int  list_index,
int  wpt_index 

Definition at line 137 of file waypoint.cpp.

void waypoint_create_game_objects ( )

Definition at line 146 of file waypoint.cpp.

void waypoint_find_unique_name ( char *  dest_name,
int  start_index 

Definition at line 357 of file waypoint.cpp.

void waypoint_level_close ( )

Definition at line 106 of file waypoint.cpp.

void waypoint_parse_init ( )

Definition at line 101 of file waypoint.cpp.

void waypoint_remove ( waypoint wpt)

Definition at line 466 of file waypoint.cpp.

Variable Documentation

const size_t INVALID_WAYPOINT_POSITION = (size_t) -1

Definition at line 16 of file waypoint.cpp.

SCP_list<waypoint_list> Waypoint_lists

Definition at line 9 of file waypoint.cpp.