Jazz2::Actors::Multiplayer::GameModeObjectActor class

Object of a game mode in the level.

Purely visual actor that shows a Jazz2::Multiplayer::GameModes::GameModeObject — a control point in Domination, a jail in Jailbreak or the flag in Flag Run. Both the server and clients create it locally and drive it from the synchronized state, it's never remoted. All the logic lives in the game mode.

Base classes

class Jazz2::Actors::ActorBase
Base class of an object.

Public types

enum class Visual : std::uint8_t { ControlPoint, Jail, Flag }
Kind of the visual.

Public static functions

static void Preload(const ActorActivationDetails& details)
Preloads all assets required by this actor.

Constructors, destructors, conversion operators

GameModeObjectActor()

Public functions

void SetVisual(Visual visual, std::uint8_t team, float progress, bool facingLeft = false)
Changes what the actor shows, team is 0xFF for no team.

Protected functions

auto OnActivatedAsync(const ActorActivationDetails& details) -> Task<bool> override
Called when the object is created and activated.
void OnUpdate(float timeMult) override
Called every frame to update the object state.

Enum documentation

enum class Jazz2::Actors::Multiplayer::GameModeObjectActor::Visual : std::uint8_t

Kind of the visual.

Enumerators
ControlPoint

Giant gem in the color of the owning team, translucent while nobody owns it

Jail

Base in the color of the team

Flag

Flag in the color of the carrier's team