Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

66 lines (45 sloc) 1.229 kB
/*
* See Licensing and Copyright notice in naev.h
*/
#ifndef WEAPON_H
# define WEAPON_H
#include "outfit.h"
#include "physics.h"
#include "pilot.h"
/**
* @enum WeaponLayer
* @brief Designates the layer the weapon is on.
* Automatically set up on creation (player is front, rest is back).
*/
typedef enum { WEAPON_LAYER_BG, WEAPON_LAYER_FG } WeaponLayer;
/*
* addition
*/
void weapon_add( const Outfit* outfit, const double T,
const double dir, const Vector2d* pos, const Vector2d* vel,
const Pilot *parent, const unsigned int target );
/*
* Beam weapons.
*/
unsigned int beam_start( const Outfit* outfit,
const double dir, const Vector2d* pos, const Vector2d* vel,
const Pilot *parent, const unsigned int target,
const PilotOutfitSlot *mount );
void beam_end( const unsigned int parent, unsigned int beam );
/*
* Misc stuff.
*/
void weapon_explode( double x, double y, double radius,
int dtype, double damage,
const Pilot *parent, int mode );
/*
* update
*/
void weapons_update( const double dt );
void weapons_render( const WeaponLayer layer, const double dt );
/*
* clean
*/
void weapon_clear (void);
void weapon_exit (void);
#endif /* WEAPON_H */
Jump to Line
Something went wrong with that request. Please try again.