Jazz2::CharacterProfile struct

Abilities of a character.

Shared by every player of the same PlayerType. The level handler may override the defaults, see ILevelHandler::GetCharacterProfile(). Speeds are in pixels per tick of the original game.

Public static variables

static std::int32_t UnlimitedCopterDuration constexpr
CopterDurationMax with no limit

Public static functions

static auto GetDefault(PlayerType type) -> CharacterProfile constexpr
Returns the default abilities of the character.

Public variables

CharacterAirJump AirJump
What the character does when jump is pressed in the air.
CharacterGroundJump GroundJump
What the character does when jump is pressed while crouching.
std::int32_t DoubleJumpCountMax
Most double jumps in one airtime.
float DoubleJumpSpeedX
Horizontal speed of a double jump, in the direction the player faces.
float DoubleJumpSpeedY
Vertical speed of a double jump.
std::int32_t CopterDurationMax
Most ticks of copter flight in one airtime.
float CopterSpeedX
Horizontal speed of copter flight, in the direction the player faces.
float CopterSpeedY
Vertical speed of copter flight, negative rises.
bool CanHurt
Whether the attack of the bird hurts enemies.
bool CanRun
Whether the character can run.
bool MorphBoxCycle
Whether morph monitors turn players into the character.