LevelStatistics struct
What a level has in a difficulty, counted from its events.
Events only in multiplayer are left out, generators are counted on their own, what they spawn isn't counted, there's no end to it. Gems and coins are counted by their value, those in crates and barrels too.
Public static functions
-
static auto Compute(const LevelDocument& document,
std::
uint8_t difficultyBit) -> LevelStatistics - Counts what a level has in a difficulty.
Public variables
-
std::
int32_t Enemies - Enemies, bosses not included.
-
std::
int32_t Bosses - Bosses.
-
std::
int32_t Gems - Value of all gems, red ones are worth 1, green 5, blue 10 and purple 1.
-
std::
int32_t GiantGems - Giant gems, each breaks into 5 to 12 red gems, which aren't counted in Gems.
-
std::
int32_t Coins - Value of all coins, silver ones are worth 1, gold 5.
-
std::
int32_t Food - Food.
-
std::
int32_t Carrots - Carrots of all kinds.
-
std::
int32_t ExtraLives - Extra lives.
-
std::
int32_t Ammo - Ammo, and crates and barrels with ammo.
-
std::
int32_t Containers - Crates, barrels and monitors.
-
std::
int32_t Checkpoints - Checkpoints.
-
std::
int32_t Warps - Tiles of warps.
-
std::
int32_t Exits - Tiles of exits.
-
std::
int32_t Starts - Starts of Jazz, Spaz and Lori.
-
std::
int32_t Generators - Generators.
-
std::
int32_t Events - All events.
Function documentation
static LevelStatistics Jazz2:: Editor:: LevelStatistics:: Compute(const LevelDocument& document,
std:: uint8_t difficultyBit)
Counts what a level has in a difficulty.
difficultyBit is one of Formats::