![]() |
naev 0.12.6
|
Handles gigantic explosions. More...
#include "explosion.h"#include "log.h"#include "pilot.h"#include "rng.h"#include "spfx.h"#include "weapon.h"
Go to the source code of this file.
Functions | |
| void | expl_explode (double x, double y, double vx, double vy, double radius, const Damage *dmg, const Pilot *parent, int mode) |
| Does explosion in a radius (damage and graphics). | |
| void | expl_explodeDamage (double x, double y, double radius, const Damage *dmg, const Pilot *parent, int mode) |
| Does explosion damage in a radius. | |
Variables | |
| static int | exp_s = -1 |
| static int | exp_m = -1 |
| static int | exp_l = -1 |
| static int | exp_200 = -1 |
| static int | exp_300 = -1 |
| static int | exp_400 = -1 |
| static int | exp_500 = -1 |
| static int | exp_600 = -1 |
Handles gigantic explosions.
Definition in file explosion.c.
| void expl_explode | ( | double | x, |
| double | y, | ||
| double | vx, | ||
| double | vy, | ||
| double | radius, | ||
| const Damage * | dmg, | ||
| const Pilot * | parent, | ||
| int | mode ) |
Does explosion in a radius (damage and graphics).
| x | X position of explosion center. |
| y | Y position of explosion center. |
| vx | X velocity of explosion center. |
| vy | Y velocity of explosion center. |
| radius | Radius of the explosion. |
| dmg | Damage characteristics. |
| parent | Parent of the explosion, NULL is none. |
| mode | Defines the explosion behaviour. |
Definition at line 42 of file explosion.c.
| void expl_explodeDamage | ( | double | x, |
| double | y, | ||
| double | radius, | ||
| const Damage * | dmg, | ||
| const Pilot * | parent, | ||
| int | mode ) |
Does explosion damage in a radius.
| x | X position of explosion center. |
| y | Y position of explosion center. |
| radius | Radius of the explosion. |
| dmg | Damage characteristics. |
| parent | Parent of the explosion, 0 is none. |
| mode | Defines the explosion behaviour. |
Definition at line 99 of file explosion.c.
|
static |
200 radius explsion spfx.
Definition at line 24 of file explosion.c.
|
static |
300 radius explosion spfx.
Definition at line 25 of file explosion.c.
|
static |
400 radius explosion spfx.
Definition at line 26 of file explosion.c.
|
static |
500 radius explosion spfx.
Definition at line 27 of file explosion.c.
|
static |
600 radius explosion spfx.
Definition at line 28 of file explosion.c.
|
static |
Large explosion spfx.
Definition at line 23 of file explosion.c.
|
static |
Medium explosion spfx.
Definition at line 22 of file explosion.c.
|
static |
Small explosion spfx.
Definition at line 21 of file explosion.c.