Simulator::cRaidPlunderEvent class

The kind of mission for pirate raid events.

Example usage, to raid the current planet:

using namespace Simulator;
auto planet = GetActivePlanetRecord();
auto empireID = planet->GetStarRecord()->mEmpireID;
auto empire = StarManager.GetEmpire(empireID);
auto mission = MissionManager.CreateMission(id("RaidPlunderEvent"), planet, empire);
auto raidEvent = object_cast<cRaidPlunderEvent>(mission);
raidEvent->mNumPirates = 20;
raidEvent->mNumBombers = 10;
raidEvent->mpTargetPlanet = GetActivePlanet();
raidEvent->AcceptMission();
auto eventID = UIEventLog.ShowEvent(0x31DF9AC0, GroupIDs::SpacePopups);
raidEvent->mAssociatedEventLogIDs.push_back(eventID);

Base classes

class cMission
Base class for all missions, this class cannot be instantiated.

Public static variables

static const uint32_t TYPE
static const uint32_t NOUN_ID

Public variables

ResourceKey mPendingUFOKey
bool mCanStart
int mNumPirates
int mNumBombers
int mNumFighters
float mDamageRemainderUFO
float mStolenSpiceFraction
eastl::vector<cShipBackgroundData> mBackgroundShipsList