Struct for options to configure the projectile.
More...
#include <projectile.hpp>
Struct for options to configure the projectile.
◆ Options()
| Projectile::Options::Options |
( |
bool |
isSpell, |
|
|
int |
damage, |
|
|
float |
h_mult, |
|
|
float |
v_mult, |
|
|
bool |
homing, |
|
|
float |
homing_strength, |
|
|
int |
homing_duration, |
|
|
std::optional< EntityID > |
target |
|
) |
| |
|
inline |
- Parameters
-
| damage | Damage when the projectile collides with a creature |
| h_mult | horizontal velocity multiplier |
| v_mult | vertical velocity multiplier |
| homing | whether or not the projectile homes in on a specified target |
| homing_strength | value from 0-1, where the closer to 1 the more strong the homing is |
| homing_duration | how many ticks it should home for |
| target | Target towards which the projectile homes, if it is homing |
◆ damage
| int Projectile::Options::damage |
◆ h_mult
| float Projectile::Options::h_mult |
◆ homing
| bool Projectile::Options::homing |
◆ homing_duration
| int Projectile::Options::homing_duration |
◆ homing_strength
| float Projectile::Options::homing_strength |
◆ isSpell
| bool Projectile::Options::isSpell |
◆ target
| std::optional<EntityID> Projectile::Options::target |
◆ v_mult
| float Projectile::Options::v_mult |
The documentation for this struct was generated from the following file: