diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2026-08-24 11:16:07 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2026-08-24 11:16:07 +0200 |
| commit | c068f22329d5cc722622a2183bbb22eef2093df7 (patch) | |
| tree | 12d56c1aede67988a55e241364606bfbb4dba933 /src/parsec/include/obj_game.h | |
| download | openparsec-c068f22329d5cc722622a2183bbb22eef2093df7.tar.xz openparsec-c068f22329d5cc722622a2183bbb22eef2093df7.zip | |
Diffstat (limited to 'src/parsec/include/obj_game.h')
| -rw-r--r-- | src/parsec/include/obj_game.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/src/parsec/include/obj_game.h b/src/parsec/include/obj_game.h new file mode 100644 index 0000000..fa7eb54 --- /dev/null +++ b/src/parsec/include/obj_game.h @@ -0,0 +1,53 @@ +/* + * PARSEC HEADER: obj_game.h + */ + +#ifndef _OBJ_GAME_H_ +#define _OBJ_GAME_H_ + + +// afterburner constants + +#define AFTERBURNER_SPEED 150000 +#define AFTERBURNER_ENERGY 2400 + + +// external functions + +int OBJ_DeviceAvailable( ShipObject *shippo, int mask ); + +void OBJ_ShootLaser( ShipObject *shippo ); +void OBJ_LaunchMissile( ShipObject *shippo, dword launcher ); +void OBJ_LaunchHomingMissile( ShipObject *shippo, dword launcher, dword targetid ); +void OBJ_LaunchMine( ShipObject *shippo ); +void OBJ_LaunchSwarmMissiles( ShipObject *shippo, dword targetid ); + +void OBJ_EnableInvisibility( ShipObject *shippo ); +void OBJ_EnableInvulnerability( ShipObject *shippo ); +void OBJ_EnableDecoy( ShipObject *shippo ); + +void OBJ_EnableLaserUpgrade1( ShipObject *shippo ); +void OBJ_EnableLaserUpgrade2( ShipObject *shippo ); + +void OBJ_EnableEmpUpgrade1( ShipObject *shippo ); +void OBJ_EnableEmpUpgrade2( ShipObject *shippo ); + +char* OBJ_BoostEnergy( ShipObject *shippo, int boost ); + +void OBJ_EnableAfterBurner( ShipObject *shippo ); +void OBJ_DisableAfterBurner( ShipObject *shippo ); +void OBJ_ActivateAfterBurner( ShipObject *shippo ); +void OBJ_DeactivateAfterBurner( ShipObject *shippo ); + +void OBJ_EventShipImpact( ShipObject *shippo, int shieldhit ); + + +// external variables + +extern int afterburner_active; +extern int afterburner_energy; + + +#endif // _OBJ_GAME_H_ + + |
