Open source remastering of the Freespace 2 engine
afterburner.cpp File Reference
#include "freespace2/freespace.h"
#include "gamesnd/gamesnd.h"
#include "hud/hudets.h"
#include "io/joy_ff.h"
#include "io/timer.h"
#include "network/multi.h"
#include "object/object.h"
#include "parse/scripting.h"
#include "render/3d.h"
#include "ship/afterburner.h"
#include "ship/ship.h"

Go to the source code of this file.


#define DISENGAGE_TIME   1500


void afterburner_level_init ()
void afterburners_start (object *objp)
void afterburners_update (object *objp, float fl_frametime)
void afterburners_stop (object *objp, int key_released)
void afterburner_stop_sounds ()

Macro Definition Documentation


Definition at line 41 of file afterburner.cpp.


Definition at line 45 of file afterburner.cpp.


Definition at line 43 of file afterburner.cpp.


Definition at line 42 of file afterburner.cpp.


Definition at line 44 of file afterburner.cpp.

#define DISENGAGE_TIME   1500

Definition at line 47 of file afterburner.cpp.


Definition at line 39 of file afterburner.cpp.

Function Documentation

void afterburner_level_init ( )

Call at the start of a mission

Definition at line 53 of file afterburner.cpp.

void afterburner_stop_sounds ( )

Terminates any looping afterburner sounds. This should only be called when the game decides to stop all looping sounds.

Definition at line 332 of file afterburner.cpp.

void afterburners_start ( object objp)

Called when a ship engages the afterburners. This function should only be called once when afterburners first start. This is to start an appropriate sound effect and do any one-time initializations.

*objppointer to the object starting afterburners

Definition at line 68 of file afterburner.cpp.

void afterburners_stop ( object objp,
int  key_released 

Called when a ship disengages the afterburners.

*objppointer to the object starting afterburners
key_releasedOPTIONAL parameter (default value 0) This is only used for the player object, to manage starting/stopping

Definition at line 279 of file afterburner.cpp.

void afterburners_update ( object objp,
float  fl_frametime 

Update the state of the afterburner fuel remaining for an object using the afterburner.

For the player ship, key_up_time() is called for the afterburner key to detect when afterburners disengage.

*objppointer to the object starting afterburners
fl_frametimetime in seconds of the last frame

Definition at line 168 of file afterburner.cpp.