Simulator::cRaidEvent class

The kind of mission for 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("RaidEvent"), planet, empire);
auto raidEvent = object_cast<cRaidEvent>(mission);
raidEvent->mpTargetPlanet = GetActivePlanet();
raidEvent->mNumBombers = 10;
raidEvent->AcceptMission();

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

cGameDataUFOPtr mGalaxyBomber
int mOriginStarRecordID
int mNumBombers
int mNumFighters
ResourceKey mPendingUFOKey
float mDamageRemainder
float mDamageRemainderUFO
bool mShouldDestroyColonyObject
bool mWaitingForRaid
int field_218
bool mUFOsLeaveOnArrival
bool mInitialized
bool mShowDefaultEventLog
uint32_t mTimeOfArrivalMS
Math::Vector3 mUFOSpawnLocation
uint32_t mAttackerEmpire
bool mIsPlayerSummoned
eastl::vector<int> mBackgroundShipsList