Jazz2/Multiplayer/RaceRouteGenerator.h file

Namespaces

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

Enums

enum class TrackRouteType { Lap, LevelExit }
Shape of the route traced by GenerateRaceRouteFromGeometry().
enum class TrackCharacterMoves : std::uint8_t { None = 0x00, DoubleJump = 0x01, Glide = 0x02, All = 0x03 }
Moves of only some characters the route tracer takes into account, supports a bitwise combination of its member values.

Functions

void GenerateRaceRouteFromGeometry(Tiles::TileMap* tileMap, Events::EventMap* eventMap, TrackRouteType routeType, float waterLevel, const SmallVector<MultiplayerSpawnPoint, 0>& spawnPoints, const SmallVector<Vector2i, 0>& startMarkers, SmallVector<RaceCheckpoint, 0>& orderedCheckpoints, Vector2i& outBoundsMin, Vector2i& outBoundsMax, bool& outCheckpointsOrdered, SmallVectorImpl<std::int32_t>* outDistances = nullptr, TrackCharacterMoves moves = TrackCharacterMoves::All)
Auto-places minimap track checkpoints for levels without authored waypoints.
auto ComputeReachableTiles(Tiles::TileMap* tileMap, Events::EventMap* eventMap, float waterLevel, Vector2f startPos, SmallVectorImpl<std::int32_t>& distances, TrackCharacterMoves moves = TrackCharacterMoves::All) -> bool
Finds every tile the player can get to from a position, with the movement model of GenerateRaceRouteFromGeometry().