naev 0.11.5
pilot_ship.c File Reference

Handles pilot ship Lua stuff. More...

#include "nlua_pilot.h"
#include "nlua_ship.h"

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 76 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 144 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 171 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 44 of file pilot_ship.c.

◆ pilot_shipLmem()

static int pilot_shipLmem ( const Pilot * p)
static

Definition at line 16 of file pilot_ship.c.

◆ pilot_shipLunmem()

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

Definition at line 27 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 108 of file pilot_ship.c.

◆ shipLRunWarning()

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

Definition at line 33 of file pilot_ship.c.