![]() |
naev 0.12.6
|
Contains all the player autonav related stuff. More...
#include "player_autonav.h"#include "ai.h"#include "map_overlay.h"#include "ndata.h"#include "nlua.h"#include "nlua_pilot.h"#include "nlua_spob.h"#include "nlua_vec2.h"#include "ntracing.h"#include "pause.h"#include "pilot.h"#include "pilot_ew.h"#include "player.h"#include "sound.h"#include "space.h"#include "toolkit.h"
Go to the source code of this file.
Functions | |
| static int | player_autonavSetup (void) |
| Prepares the player to enter autonav. | |
| int | player_autonavInit (void) |
| Initialize the autonav code. | |
| void | player_autonavResetSpeed (void) |
| Resets the game speed. | |
| void | player_autonavStart (void) |
| Starts autonav. | |
| void | player_autonavEnd (void) |
| Ends the autonav. | |
| void | player_autonavStartWindow (unsigned int wid, const char *str) |
| Starts autonav and closes the window. | |
| void | player_autonavPos (double x, double y) |
| Starts autonav with a local position destination. | |
| void | player_autonavSpob (const char *name, int tryland) |
| Starts autonav with a spob destination. | |
| void | player_autonavPil (unsigned int p) |
| Starts autonav with a pilot to follow. | |
| void | player_autonavBoard (unsigned int p) |
| Starts autonav with a pilot to board. | |
| void | player_autonavAbort (const char *reason) |
| Aborts autonav. | |
| void | player_autonavReset (double s) |
| Resets the game speed without disabling autonav. | |
| void | player_thinkAutonav (Pilot *pplayer, double dt) |
| Handles autonav thinking. | |
| void | player_updateAutonav (double dt) |
| Updates the player's autonav. | |
| void | player_autonavEnter (void) |
| Signal to the autonav that a new system was entered. | |
Variables | |
| static nlua_env | autonav_env = LUA_NOREF |
| static int | func_system = LUA_NOREF |
| static int | func_spob = LUA_NOREF |
| static int | func_pilot = LUA_NOREF |
| static int | func_board = LUA_NOREF |
| static int | func_pos = LUA_NOREF |
| static int | func_reset = LUA_NOREF |
| static int | func_end = LUA_NOREF |
| static int | func_abort = LUA_NOREF |
| static int | func_think = LUA_NOREF |
| static int | func_update = LUA_NOREF |
| static int | func_enter = LUA_NOREF |
| static int | autonav_ending = 0 |
Contains all the player autonav related stuff.
Definition in file player_autonav.c.
| void player_autonavAbort | ( | const char * | reason | ) |
Aborts autonav.
| reason | Human-readable string describing abort condition. |
Definition at line 281 of file player_autonav.c.
| void player_autonavBoard | ( | unsigned int | p | ) |
Starts autonav with a pilot to board.
Definition at line 254 of file player_autonav.c.
| void player_autonavEnd | ( | void | ) |
Ends the autonav.
Definition at line 157 of file player_autonav.c.
| void player_autonavEnter | ( | void | ) |
Signal to the autonav that a new system was entered.
Definition at line 425 of file player_autonav.c.
| int player_autonavInit | ( | void | ) |
Initialize the autonav code.
Definition at line 54 of file player_autonav.c.
| void player_autonavPil | ( | unsigned int | p | ) |
Starts autonav with a pilot to follow.
Definition at line 235 of file player_autonav.c.
| void player_autonavPos | ( | double | x, |
| double | y ) |
Starts autonav with a local position destination.
Definition at line 193 of file player_autonav.c.
| void player_autonavReset | ( | double | s | ) |
Resets the game speed without disabling autonav.
| s | How many seconds to wait before starting autonav again. |
Definition at line 319 of file player_autonav.c.
| void player_autonavResetSpeed | ( | void | ) |
Resets the game speed.
Definition at line 91 of file player_autonav.c.
|
static |
Prepares the player to enter autonav.
Definition at line 139 of file player_autonav.c.
| void player_autonavSpob | ( | const char * | name, |
| int | tryland ) |
Starts autonav with a spob destination.
Definition at line 213 of file player_autonav.c.
| void player_autonavStart | ( | void | ) |
Starts autonav.
Definition at line 99 of file player_autonav.c.
| void player_autonavStartWindow | ( | unsigned int | wid, |
| const char * | str ) |
Starts autonav and closes the window.
Definition at line 182 of file player_autonav.c.
| void player_thinkAutonav | ( | Pilot * | pplayer, |
| double | dt ) |
Handles autonav thinking.
| pplayer | Player doing the thinking. |
| dt | Current delta tick. |
Definition at line 335 of file player_autonav.c.
| void player_updateAutonav | ( | double | dt | ) |
Updates the player's autonav.
| dt | Current delta tick (should be real delta tick, not game delta tick). |
Definition at line 357 of file player_autonav.c.
|
static |
Definition at line 153 of file player_autonav.c.
|
static |
Autonav environment.
Definition at line 33 of file player_autonav.c.
|
static |
Definition at line 41 of file player_autonav.c.
|
static |
Definition at line 37 of file player_autonav.c.
|
static |
Definition at line 40 of file player_autonav.c.
|
static |
Definition at line 44 of file player_autonav.c.
|
static |
Definition at line 36 of file player_autonav.c.
|
static |
Definition at line 38 of file player_autonav.c.
|
static |
Definition at line 39 of file player_autonav.c.
|
static |
Definition at line 35 of file player_autonav.c.
|
static |
Definition at line 34 of file player_autonav.c.
|
static |
Definition at line 42 of file player_autonav.c.
|
static |
Definition at line 43 of file player_autonav.c.