Jazz2/WeaponDefinition.h file

Namespaces

namespace Jazz2
Root namespace of Jazz² Resurrection.

Classes

struct Jazz2::WeaponOptions
Options of a weapon a level can change, as JJ2+ scripts know them.
struct Jazz2::WeaponSprite
Sprite of a custom weapon.
struct Jazz2::WeaponFireOptions
How a custom weapon fires.
struct Jazz2::WeaponShotOptions
Shot of a custom weapon.
struct Jazz2::CustomWeaponOptions
How a custom weapon fires and what, and how it looks, only a custom weapon has it.
struct Jazz2::WeaponDefinition
What a level makes of one of the weapons.
struct Jazz2::WeaponEditorData
What a level keeps of a weapon only for the editor.
struct Jazz2::WeaponSound
Sound of a custom weapon, a file kept in the level.
struct Jazz2::WeaponImage
Image of a custom weapon, a sheet of frames in rows and columns.
struct Jazz2::WeaponsDescription
Weapons of a level.

Enums

enum class WeaponStyle : std::int8_t { Normal, Missile, Popcorn, Capped }
How often a weapon fires while the button is held, as JJ2+ scripts know it.
enum class WeaponSpread : std::int32_t { Normal = 0, Double = 1, Triple = 2, DoubleOrTriple = 3, DirectionAndAim = 4, NormalOrDirectionAndAim = 5, Pepper = 6, NormalOrPepper = 7, Toaster = 8 }
How many shots a weapon fires at once and how, as JJ2+ scripts know it.
enum class WeaponKind : std::uint8_t { Stock, Custom, Script }
What a level makes of one of the weapons.
enum class ShotTrigger : std::uint8_t { Contact, Proximity, Timer }
When a custom shot goes off.
enum class ShotLook : std::uint8_t { Sprite, Glow, Electro, Beam }
How a custom shot is drawn.
enum class ShotFlip : std::uint8_t { Normal, Flipped, Random }
Whether the sprite of a custom shot is flipped, beyond turning to where it's fired.