WeaponShotOptions struct
#include <Jazz2/WeaponDefinition.h>
Shot of a custom weapon.
Public functions
- auto operator==(const WeaponShotOptions& other) const -> bool
- auto operator!=(const WeaponShotOptions& other) const -> bool
Public variables
- WeaponSprite Sprite
- Sprite of the shot.
- WeaponSprite AltSprite
- Second sprite, each shot takes one of the two at random, empty for none.
- float Speed
- Speed in pixels a frame.
- float Acceleration
- Speed added the way it flies each frame, below 0 it slows down to a stop.
- float Gravity
- Speed added downwards each frame.
- float Lifetime
- Frames it lasts.
- float Elasticity
- Speed kept after a bounce.
- float HomingTurnRate
- How fast it turns towards an enemy, in radians a frame, 0 for never.
- float HomingRange
- How far it sees an enemy to turn to.
- float FreezeDuration
- Frames it freezes what it hits for, 0 for none.
- float TriggerRadius
- How close something must come for ShotTrigger::
Proximity. - float AreaRadius
- Radius of the damage it does around where it goes off, 0 for none.
- float Knockback
- How hard it pushes away what's around where it goes off.
- float LightRadius
- Radius of its light, 0 for none.
- float LightIntensity
- Intensity of its light.
-
std::
int32_t Strength - Damage.
-
std::
int32_t Pierce - Enemies it passes through before it stops.
-
std::
int32_t Bounces - Walls it bounces off before it stops.
-
std::
int32_t AreaStrength - Damage it does around where it goes off.
-
std::
int32_t Explosion - Explosion where it goes off (see Actors::
Explosion:: Type), -1 for none. - WeaponType DestroysBlocksAs
- Weapon of the game whose blocks it destroys, WeaponType::
Unknown for its own. - ShotTrigger Trigger
- When it goes off.
- ShotLook Look
- How it's drawn.
- ShotFlip FlipX
- Whether the sprite is flipped horizontally.
- ShotFlip FlipY
- Whether the sprite is flipped vertically.
- bool InheritPlayerSpeed
- Whether the speed of the player is added.
- bool PassesWalls
- Whether it flies through walls.
- bool Thaws
- Whether it thaws what's frozen.
- bool RotatesWithSpeed
- Whether it turns where it flies.