Jazz2::Actors::Multiplayer::Flag class

Capture The Flag flag/base marker.

Purely visual actor used in Jazz2::Multiplayer::MpGameMode::CaptureTheFlag to represent a team's flag. It is spawned and positioned by the server (sitting at the home base, following its carrier, or lying where it was dropped) and remoted to clients like any other actor; all capture logic lives in Jazz2::Multiplayer::MpLevelHandler.

Base classes

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

Public static functions

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

Constructors, destructors, conversion operators

Flag()

Public functions

auto GetTeam() const -> std::uint8_t
Returns the team this flag belongs to.

Protected functions

auto OnActivatedAsync(const ActorActivationDetails& details) -> Task<bool> override
Called when the object is created and activated.