Jazz2/Scripting/Legacy/Game.h file

Namespaces

namespace Jazz2
Root namespace of Jazz² Resurrection.
namespace Jazz2::Scripting
Scripting-related classes, compiled only if WITH_ANGELSCRIPT.

Functions

auto getLevelFileName() -> String
Returns the file name of the current level.
auto getCurrLevelName() -> String
Returns the title of the current level.
void setCurrLevelName(const String& in)
Sets the title of the current level.
auto get_jjTilesetFileName() -> String
Returns the file name of the tile set used by the current level.
auto get_gameState() -> std::int32_t partially supported
Returns the state of the multiplayer game.
auto getBorderWidth() -> std::int32_t partially supported
Returns the width of the black border on the left and right side of each subscreen.
auto getBorderHeight() -> std::int32_t partially supported
Returns the height of the black border on the top and bottom side of each subscreen.
auto getSplitscreenType() -> bool partially supported
Whether the screen is split vertically when there are exactly two local players.
auto setSplitscreenType(bool value) -> bool partially supported
Sets whether the screen is split vertically.
auto get_teamScore(std::int32_t color) -> std::int32_t partially supported
Returns the current score of a team in team-based game modes.
auto GetMaxHealth() -> std::int32_t
Returns the highest health a player can have.
auto GetStartHealth() -> std::int32_t
Returns the health a player starts with.
auto getEnabledTeam(std::uint8_t team) -> bool partially supported
Whether a team is enabled in the current game.
auto getKeyDown(std::uint8_t key) -> bool
Whether a key or a mouse button is currently held down.
auto getCursorX() -> std::int32_t
Returns the horizontal position of the mouse cursor.
auto getCursorY() -> std::int32_t
Returns the vertical position of the mouse cursor.