naev 0.12.5
pilot_ship.c File Reference

Handles pilot ship Lua stuff. More...

#include "nlua_pilot.h"
Include dependency graph for pilot_ship.c:

Go to the source code of this file.

Functions

static int pilot_shipLmem (const Pilot *p)
static void pilot_shipLunmem (const Pilot *p, int oldmem)
static void shipLRunWarning (const Pilot *p, const Ship *s, const char *name, const char *error)
int pilot_shipLInit (Pilot *p)
 Initializes the pilot ship Lua.
int pilot_shipLCleanup (Pilot *p)
 Cleans up the pilot ship Lua.
int pilot_shipLUpdate (Pilot *p, double dt)
 Updates the pilot Lua stuff.
int pilot_shipLExplodeInit (Pilot *p)
 Initializes the pilot explosion stuff.
int pilot_shipLExplodeUpdate (Pilot *p, double dt)
 Updates the pilot explosion Lua stuff.

Detailed Description

Handles pilot ship Lua stuff.

Definition in file pilot_ship.c.

Function Documentation

◆ pilot_shipLCleanup()

int pilot_shipLCleanup ( Pilot * p)

Cleans up the pilot ship Lua.

Parameters
pPilot to set up memory for.
Returns
0 on success.

Definition at line 73 of file pilot_ship.c.

◆ pilot_shipLExplodeInit()

int pilot_shipLExplodeInit ( Pilot * p)

Initializes the pilot explosion stuff.

Parameters
pPilot to set up memory for.
Returns
0 on success.

Definition at line 141 of file pilot_ship.c.

◆ pilot_shipLExplodeUpdate()

int pilot_shipLExplodeUpdate ( Pilot * p,
double dt )

Updates the pilot explosion Lua stuff.

Parameters
pPilot to set up memory for.
dtTime delta-tick.
Returns
0 on success.

Definition at line 168 of file pilot_ship.c.

◆ pilot_shipLInit()

int pilot_shipLInit ( Pilot * p)

Initializes the pilot ship Lua.

Parameters
pPilot to set up memory for.
Returns
0 on success.

Definition at line 41 of file pilot_ship.c.

◆ pilot_shipLmem()

int pilot_shipLmem ( const Pilot * p)
static

Definition at line 11 of file pilot_ship.c.

◆ pilot_shipLunmem()

void pilot_shipLunmem ( const Pilot * p,
int oldmem )
static

Definition at line 22 of file pilot_ship.c.

◆ pilot_shipLUpdate()

int pilot_shipLUpdate ( Pilot * p,
double dt )

Updates the pilot Lua stuff.

Parameters
pPilot to set up memory for.
dtTime delta-tick.
Returns
0 on success.

Definition at line 105 of file pilot_ship.c.

◆ shipLRunWarning()

void shipLRunWarning ( const Pilot * p,
const Ship * s,
const char * name,
const char * error )
static

Definition at line 28 of file pilot_ship.c.