In-game representation of a weapon.
More...
In-game representation of a weapon.
Definition at line 59 of file weapon.c.
◆ anim
Used for beam weapon graphics and others.
Definition at line 77 of file weapon.c.
◆ dam_as_dis_mod
| double Weapon::dam_as_dis_mod |
◆ dam_mod
◆ faction
faction of pilot that shot it
Definition at line 64 of file weapon.c.
◆ falloff
Point at which damage falls off. Used to determine slowdown for smart seekers.
Definition at line 82 of file weapon.c.
◆ flags
| unsigned int Weapon::flags |
Weapno flags.
Definition at line 60 of file weapon.c.
◆ ID
Only used for beam weapons.
Definition at line 62 of file weapon.c.
◆ life
Total life.
Definition at line 75 of file weapon.c.
◆ lua_mem
◆ mount
Used for beam weapons.
Definition at line 80 of file weapon.c.
◆ outfit
related outfit that fired it or whatnot
Definition at line 67 of file weapon.c.
◆ paramf
Arbitrary parameter for outfits.
Definition at line 74 of file weapon.c.
◆ parent
| unsigned int Weapon::parent |
pilot that shot it
Definition at line 65 of file weapon.c.
Unique random value .
Definition at line 78 of file weapon.c.
◆ real_vel
Keeps track of the real velocity.
Definition at line 69 of file weapon.c.
◆ solid
Actually has its own solid :)
Definition at line 61 of file weapon.c.
◆ sprite
Used for spinning outfits.
Definition at line 79 of file weapon.c.
◆ status
◆ strength
Calculated with falloff.
Definition at line 83 of file weapon.c.
◆ sx
Current X sprite to use.
Definition at line 84 of file weapon.c.
◆ sy
Current Y sprite to use.
Definition at line 85 of file weapon.c.
◆ target
| unsigned int Weapon::target |
target to hit, only used by seeking things
Definition at line 66 of file weapon.c.
◆ think
| void(* Weapon::think) (struct Weapon_ *, const double) |
for the smart missiles
Definition at line 90 of file weapon.c.
◆ timer
mainly used to see when the weapon was fired
Definition at line 76 of file weapon.c.
◆ timer2
Explosion timer for beams, and lockon for ammo.
Definition at line 73 of file weapon.c.
◆ trail
Trail graphic if applicable, else NULL.
Definition at line 86 of file weapon.c.
◆ update
| void(* Weapon::update) (struct Weapon_ *, const double, WeaponLayer) |
Updates the weapon
Definition at line 89 of file weapon.c.
◆ voice
The documentation for this struct was generated from the following file:
- /builddir/build/BUILD/naev-0.10.4/src/weapon.c