class
cRaidPlunderEventThe 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.