class
cRaidEventThe 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
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