Layers.h file
Namespaces
- namespace Jazz2
- Root namespace of Jazz² Resurrection.
- namespace Jazz2::Scripting
- Scripting-related classes, compiled only if
WITH_ANGELSCRIPT. - namespace Jazz2::Scripting::Legacy
- Legacy JJ2+ definitions.
Classes
- class Jazz2::Scripting::Legacy::jjLAYER
- Layer of tiles.
- struct Jazz2::Scripting::Legacy::jjLAYER::TextureStyleParams
- Parameters of one texture style of a layer, the object behind
jjLAYERWARPHORIZONand the others. - class Jazz2::Scripting::Legacy::jjTILE
- A tile of the level, static or animated.
Functions
- auto mlleSetup() -> bool
- Finishes setting up a level made in an extended level editor.
- void mlleSpawnOffgrids()
- Spawns the objects placed off the tile grid.
- void mlleSpawnOffgridsLocal()
- Spawns the objects placed off the tile grid, for local players only.
- auto mlleGetLayer(const String& name) -> Legacy::jjLAYER*
- Returns the layer of the given name, or null if the level has no such layer.
-
void jjSetFadeColors(std::
uint8_t red, std:: uint8_t green, std:: uint8_t blue) - Sets the fade color of the textured background.
-
void jjSetFadeColorsFromPalette(std::
uint8_t paletteColorID) - Sets the fade color of the textured background to the color of a palette entry.
- void jjSetFadeColorsFromPalcolor(jjPALCOLOR color)
- Sets the fade color of the textured background.
- auto jjGetFadeColors() -> jjPALCOLOR
- Returns the fade color of the textured background, see jjSetFadeColors().
- void jjUpdateTexturedBG()
- Redraws the textured background from the tiles of its layer.
-
auto get_jjTexturedBGTexture() -> std::
int32_t - Returns the texture of the textured background.
-
auto set_jjTexturedBGTexture(std::
int32_t texture) -> std:: int32_t - Sets the texture of the textured background.
-
auto get_jjTexturedBGStyle() -> std::
int32_t - Returns the effect the textured background is drawn with.
-
auto set_jjTexturedBGStyle(std::
int32_t style) -> std:: int32_t - Sets the effect the textured background is drawn with.
- auto get_jjTexturedBGUsed() -> bool
- Whether
jjLayers[8]is drawn textured. - auto set_jjTexturedBGUsed(bool used) -> bool
- Sets whether
jjLayers[8]is drawn textured. - auto get_jjTexturedBGStars() -> bool
- Whether the textured background shows stars.
- auto set_jjTexturedBGStars(bool used) -> bool
- Sets whether the textured background shows stars.
- auto get_jjTexturedBGFadePositionX() -> float
- Returns the horizontal fade position of the textured background.
- auto set_jjTexturedBGFadePositionX(float value) -> float
- Sets the horizontal fade position of the textured background.
- auto get_jjTexturedBGFadePositionY() -> float
- Returns the vertical fade position of the textured background.
- auto set_jjTexturedBGFadePositionY(float value) -> float
- Sets the vertical fade position of the textured background.
- auto getUseLayer8Speeds() -> bool
- Whether layer 8 moves by its own speeds.
- auto setUseLayer8Speeds(bool value) -> bool
- Sets whether layer 8 moves by its own speeds.
-
auto jjGetStaticTile(std::
uint16_t tileID) -> std:: uint16_t partially supported - Returns the frame an animated tile currently shows.
-
auto jjTileGet(std::
uint8_t layer, std:: int32_t xTile, std:: int32_t yTile) -> std:: uint16_t - Returns the tile at a position in tiles in one of the original layers.
-
auto jjTileSet(std::
uint8_t layer, std:: int32_t xTile, std:: int32_t yTile, std:: uint16_t newTile) -> std:: uint16_t - Changes the tile at a position in tiles in one of the original layers.
-
void jjGenerateSettableTileArea(std::
uint8_t layer, std:: int32_t xTile, std:: int32_t yTile, std:: int32_t width, std:: int32_t height) - Prepares a rectangular area of one of the original layers for jjTileSet().
-
auto jjMaskedPixel(std::
int32_t xPixel, std:: int32_t yPixel) -> bool - Returns whether a pixel of the sprite layer is solid.
-
auto jjMaskedPixelLayer(std::
int32_t xPixel, std:: int32_t yPixel, std:: uint8_t layer) -> bool partially supported - Returns whether a pixel is solid, see jjMaskedPixel().
-
auto jjMaskedHLine(std::
int32_t xPixel, std:: int32_t lineLength, std:: int32_t yPixel) -> bool - Returns whether any pixel of a horizontal line in the sprite layer is solid.
-
auto jjMaskedHLineLayer(std::
int32_t xPixel, std:: int32_t lineLength, std:: int32_t yPixel, std:: uint8_t layer) -> bool partially supported - Returns whether any pixel of a horizontal line is solid, see jjMaskedHLine().
-
auto jjMaskedVLine(std::
int32_t xPixel, std:: int32_t yPixel, std:: int32_t lineLength) -> bool - Returns whether any pixel of a vertical line in the sprite layer is solid.
-
auto jjMaskedVLineLayer(std::
int32_t xPixel, std:: int32_t yPixel, std:: int32_t lineLength, std:: uint8_t layer) -> bool partially supported - Returns whether any pixel of a vertical line is solid, see jjMaskedVLine().
-
auto jjMaskedTopVLine(std::
int32_t xPixel, std:: int32_t yPixel, std:: int32_t lineLength) -> std:: int32_t - Returns where the topmost solid pixel of a vertical line in the sprite layer is.
-
auto jjMaskedTopVLineLayer(std::
int32_t xPixel, std:: int32_t yPixel, std:: int32_t lineLength, std:: uint8_t layer) -> std:: int32_t partially supported - Returns where the topmost solid pixel of a vertical line is, see jjMaskedTopVLine().