In-game representation of a weapon.
More...
#include <weapon.h>
In-game representation of a weapon.
Definition at line 47 of file weapon.h.
◆ anim
Used for beam weapon graphics and others.
Definition at line 66 of file weapon.h.
◆ armour
Health status of the weapon.
Definition at line 78 of file weapon.h.
◆ dam_as_dis_mod
| double Weapon::dam_as_dis_mod |
◆ dam_mod
◆ faction
faction of pilot that shot it
Definition at line 53 of file weapon.h.
◆ falloff
Point at which damage falls off. Used to determine slowdown for smart seekers.
Definition at line 71 of file weapon.h.
◆ flags
| unsigned int Weapon::flags |
◆ id
Unique weapon id.
Definition at line 51 of file weapon.h.
◆ layer
| WeaponLayer Weapon::layer |
◆ life
Total life.
Definition at line 64 of file weapon.h.
◆ lua_mem
◆ mount
Used for beam weapons.
Definition at line 69 of file weapon.h.
◆ outfit
related outfit that fired it or whatnot
Definition at line 56 of file weapon.h.
◆ paramf
Arbitrary parameter for outfits.
Definition at line 63 of file weapon.h.
◆ parent
| unsigned int Weapon::parent |
pilot that shot it
Definition at line 54 of file weapon.h.
Unique random value .
Definition at line 67 of file weapon.h.
◆ real_vel
Keeps track of the real velocity.
Definition at line 58 of file weapon.h.
◆ solid
Actually has its own solid :)
Definition at line 50 of file weapon.h.
◆ sprite
Used for spinning outfits.
Definition at line 68 of file weapon.h.
◆ status
| WeaponStatus Weapon::status |
◆ strength
Calculated with falloff.
Definition at line 72 of file weapon.h.
◆ strength_base
| double Weapon::strength_base |
Base strength, set via Lua.
Definition at line 73 of file weapon.h.
◆ sx
Current X sprite to use.
Definition at line 74 of file weapon.h.
◆ sy
Current Y sprite to use.
Definition at line 75 of file weapon.h.
◆ target
◆ think
| void(* Weapon::think) (struct Weapon_ *, double) |
for the smart missiles
Definition at line 80 of file weapon.h.
◆ timer
mainly used to see when the weapon was fired
Definition at line 65 of file weapon.h.
◆ timer2
Explosion timer for beams, and lockon for ammo.
Definition at line 62 of file weapon.h.
◆ trail
Trail graphic if applicable, else NULL.
Definition at line 76 of file weapon.h.
◆ voice
The documentation for this struct was generated from the following file:
- /builddir/build/BUILD/naev-0.11.5/src/weapon.h