Members
-
string
name
-
Player@
player
-
uint8
id
-
int
index
-
uint
mask
-
uint
visionMask
-
Color
color
-
const Material@
background
-
const Material@
portrait
-
const Material@
flag
-
string
backgroundDef
-
string
portraitDef
-
string
flagDef
-
const Shipset@
shipset
-
string
effectorSkin
-
uint
hostileMask
-
ReadWriteMutex
designMutex
-
ReadWriteMutex
subsystemDataMutex
-
Component_ResearchGrid@
Research
— Member created from datafiles.
-
Component_ResourceManager@
Resources
— Member created from datafiles.
-
Component_ObjectManager@
Objects
— Member created from datafiles.
-
Component_Attributes@
Attributes
— Member created from datafiles.
-
Component_EmpireAI@
AI
— Member created from datafiles.
-
Component_EnergyManager@
EnergyPowers
— Member created from datafiles.
-
Component_InfluenceManager@
Influence
— Member created from datafiles.
-
Component_FleetManager@
Fleets
— Member created from datafiles.
-
Component_Notifications@
Notify
— Member created from datafiles.
-
Component_Traits@
TraitManager
— Member created from datafiles.
-
int
handicap
— Member created from datafiles.
-
Namespace@
NS
— Member created from datafiles.
-
Planet@
Homeworld
— Member created from datafiles.
-
locked_int
PeaceMask
— Member created from datafiles.
-
locked_int
ForcedPeaceMask
— Member created from datafiles.
-
locked_int
AllyMask
— Member created from datafiles.
-
double
TotalMilitary
— Member created from datafiles.
-
locked_int
TotalPlanets
— Member created from datafiles.
-
locked_int
TotalFlagshipsBuilt
— Member created from datafiles.
-
locked_int
TotalFlagshipsActive
— Member created from datafiles.
-
locked_int
TotalSupportsBuilt
— Member created from datafiles.
-
locked_int
TotalSupportsActive
— Member created from datafiles.
-
locked_int
GlobalLoyalty
— Member created from datafiles.
-
int
Victory
— Member created from datafiles.
-
locked_int
DiplomacyPoints
— Member created from datafiles.
-
int
prevPoints
— Member created from datafiles.
-
bool
GlobalCharge
— Member created from datafiles.
-
int
VotesWonCounter
— Member created from datafiles.
-
locked_double
ModHP
— Member created from datafiles.
-
locked_double
ModArmor
— Member created from datafiles.
-
locked_double
ModShield
— Member created from datafiles.
-
locked_double
ModSpeed
— Member created from datafiles.
-
locked_int
CivilianTradeShips
— Member created from datafiles.
-
bool
major
— Member created from datafiles.
-
int
team
— Member created from datafiles.
-
locked_int
points
— Member created from datafiles.
-
int
MilitaryStrength
— Member created from datafiles.
-
int
PoliticalStrength
— Member created from datafiles.
-
int
EmpireStrength
— Member created from datafiles.
-
bool
GlobalTrade
— Member created from datafiles.
-
locked_int
ContactMask
— Member created from datafiles.
-
locked_int
TradeMask
— Member created from datafiles.
-
Empire@
SubjugatedBy
— Member created from datafiles.
-
locked_int
PathId
— Member created from datafiles.
-
double
RebateInfluenceBuys
— Member created from datafiles.
-
double
ExtraInfluenceBuyCost
— Member created from datafiles.
-
double
InfluencePlacementMod
— Member created from datafiles.
-
double
FireDamageTakenFactor
— Member created from datafiles.
-
double
CaptureSupplyFactor
— Member created from datafiles.
-
double
PopulationGrowthFactor
— Member created from datafiles.
-
double
TileDevelopmentFactor
— Member created from datafiles.
-
double
BuildingConstructRate
— Member created from datafiles.
-
double
FleetEfficiencyFactor
— Member created from datafiles.
-
double
VoteStartSupport
— Member created from datafiles.
-
double
VoteCardCostMod
— Member created from datafiles.
-
double
SupportCardCostMod
— Member created from datafiles.
-
double
WelfareEfficiency
— Member created from datafiles.
-
double
FactoryLaborMod
— Member created from datafiles.
-
double
PlanetSupplyMod
— Member created from datafiles.
-
double
PopulationLevel2Mod
— Member created from datafiles.
-
double
PopulationLevel3Mod
— Member created from datafiles.
-
double
ForgeCount
— Member created from datafiles.
Methods
-
bool
isHostile(
Empire@
emp
)
-
void
setHostile(
Empire&
emp,
bool
value
)
-
uint
get_objectCount(
)
-
Object@
get_objects(
uint
i
)
-
void
recordStat(
EmpireStat
arg0,
int
arg1
)
-
void
recordStat(
EmpireStat
arg0,
float
arg1
)
-
void
recordStatDelta(
EmpireStat
arg0,
int
arg1
)
-
void
recordStatDelta(
EmpireStat
arg0,
float
arg1
)
-
void
recordEvent(
EmpireStat
arg0,
uint
arg1,
string&
arg2
)
-
uint
get_designCount(
) const
-
const Design@
getDesign(
string&
arg0
)
-
const Design@
getDesign(
int
id
)
-
const Design@
get_designs(
int
arg0
)
-
uint
get_designClassCount(
) const
-
const DesignClass@
getDesignClass(
int
id
)
-
const DesignClass@
getDesignClass(
string&
arg0,
bool
add = true
)
-
bool
addDesign(
DesignClass&
cls,
Design&
arg1
)
-
bool
changeDesign(
Design&
arg0,
Design&
arg1,
const DesignClass@
cls = null
)
-
const Design@
updateDesign(
Design&
arg0,
bool
onlyOutdated = false
)
-
void
flagDesignOld(
Design&
arg0
)
-
bool
get_valid(
)
-
bool
isUnlocked(
SubsystemDef&
sys,
ModuleDef&
mod
)
-
bool
isUnlocked(
SubsystemDef&
sys
)
-
void
setUnlocked(
SubsystemDef&
sys,
ModuleDef&
mod,
bool
unlocked
)
-
void
setUnlocked(
SubsystemDef&
sys,
bool
unlocked
)
-
void
removeModifier(
SubsystemDef&
sys,
uint
id
)
-
void
writeDelta(
Message&
msg
)
-
void
readDelta(
Message&
msg
)
-
uint
addModifier(
SubsystemDef&
def,
string&
arg1
)
-
uint
addModifier(
SubsystemDef&
def,
string&
arg1,
float
arg2
)
-
uint
addModifier(
SubsystemDef&
def,
string&
arg1,
float
arg2,
float
arg3
)
-
uint
addModifier(
SubsystemDef&
def,
string&
arg1,
float
arg2,
float
arg3,
float
arg4
)
-
uint
addModifier(
SubsystemDef&
def,
string&
arg1,
float
arg2,
float
arg3,
float
arg4,
float
arg5
)
-
uint
addModifier(
SubsystemDef&
def,
string&
arg1,
float
arg2,
float
arg3,
float
arg4,
float
arg5,
float
arg6
)
-
uint
addModifier(
SubsystemDef&
def,
string&
arg1,
float
arg2,
float
arg3,
float
arg4,
float
arg5,
float
arg6,
float
arg7
)
-
uint
addModifier(
SubsystemDef&
def,
string&
arg1,
float
arg2,
float
arg3,
float
arg4,
float
arg5,
float
arg6,
float
arg7,
float
arg8
)
-
uint
addModifier(
SubsystemDef&
def,
string&
arg1,
float
arg2,
float
arg3,
float
arg4,
float
arg5,
float
arg6,
float
arg7,
float
arg8,
float
arg9
)
-
void
initAttributes(
)
-
void
attributesTick(
double
time
)
-
void
syncAttributes(
)
-
int
createAttributeMod(
uint
attrib,
uint
mode,
double
amount,
double
timer = -1.0
)
-
void
removeAttributeMod(
uint
attrib,
int
id
)
-
void
modAttribute(
uint
attrib,
uint
mode,
double
amount
)
-
void
writeAttributes(
Message&
msg,
bool
initial = false
)
-
void
readAttributes(
Message&
msg
)
-
bool
get_hasAttributes(
) const
-
Component_Attributes@
get_Attributes(
)
-
uint
get_abilityCount(
) const
-
DataList@
getAbilities(
) const
-
uint
get_abilityTypes(
int
id
) const
-
void
activateAbility(
int
id
)
-
void
activateAbility(
int
id,
vec3d
point
)
-
void
activateAbility(
int
id,
const Object@
target
)
-
void
powerTick(
double
time
)
-
int
addAbility(
uint
id
)
-
void
removeAbility(
int
id
)
-
void
disableAbility(
int
id
)
-
void
enableAbility(
int
id
)
-
void
writeAbilities(
Message&
msg
) const
-
bool
writeAbilityDelta(
Message&
msg
) const
-
void
readAbilities(
Message&
msg
)
-
void
readAbilityDelta(
Message&
msg
)
-
bool
get_hasEnergyManager(
) const
-
Component_EnergyManager@
get_EnergyManager(
)
-
DataList@
getPlanets(
)
-
DataList@
getQueuedColonizations(
)
-
DataList@
getAsteroids(
)
-
bool
get_hasFlingBeacons(
)
-
DataList@
getFlingBeacons(
)
-
Orbital@
getFlingBeacon(
vec3d
position
)
-
Orbital@
getClosestFlingBeacon(
vec3d
position
)
-
DataList@
getStargates(
)
-
Orbital@
getStargate(
vec3d
position
)
-
DataList@
getOrbitals(
)
-
bool
hasStargates(
)
-
DataList@
getArtifacts(
)
-
uint
get_planetCount(
)
-
Planet@
get_planetList(
uint
index
)
-
uint
get_orbitalCount(
)
-
Orbital@
get_orbitals(
uint
index
)
-
void
autoImportResourceOfClass(
Object&
into,
uint
resClsId
)
-
void
autoImportResourceOfLevel(
Object&
into,
uint
level
)
-
void
autoImportResourceOfType(
Object&
into,
uint
typeId
)
-
void
autoImportToLevel(
Object&
into,
uint
level
)
-
void
cancelAutoImportTo(
Object&
into
)
-
void
cancelAutoImportTo(
Object&
into,
uint
resClsId
)
-
void
autoColonize(
const Object@
pl
)
-
void
cancelColonization(
const Object@
pl
)
-
void
registerColonization(
const Object@
from,
const Object@
to
)
-
void
unregisterColonization(
const Object@
from,
const Object@
to,
bool
cancel = true
)
-
void
registerPlanet(
const Planet@
pl
)
-
void
unregisterPlanet(
const Planet@
pl
)
-
void
registerFlingBeacon(
const Orbital@
obj
)
-
void
unregisterFlingBeacon(
const Orbital@
obj
)
-
void
registerStargate(
const Orbital@
obj
)
-
void
unregisterStargate(
const Orbital@
obj
)
-
void
registerOrbital(
const Orbital@
obj
)
-
void
unregisterOrbital(
const Orbital@
obj
)
-
void
registerAsteroid(
const Asteroid@
asteroid
)
-
void
unregisterAsteroid(
const Asteroid@
asteroid
)
-
void
registerArtifact(
const Artifact@
obj
)
-
void
unregisterArtifact(
const Artifact@
obj
)
-
void
checkAutoImport(
const Object@
from
)
-
void
gotImportFor(
const Object@
forObj,
uint
resId
)
-
void
requestTradeCivilian(
const Region@
toRegion
)
-
void
stopRequestTradeCivilian(
const Region@
toRegion
)
-
Region@
getTradeCivilianRequest(
vec3d
position
)
-
Orbital@
getOrbitalAfter(
int
id
)
-
void
planetTick(
double
time
)
-
void
writeObjects(
Message&
msg,
bool
initial = false
)
-
bool
get_hasPlanets(
)
-
void
readObjects(
Message&
msg
)
-
bool
get_hasObjectManager(
) const
-
Component_ObjectManager@
get_ObjectManager(
)
-
double
get_EstTotalPopulation(
) const
-
double
get_TotalPopulation(
) const
-
double
get_FTLIncome(
) const
-
double
get_FTLStored(
) const
-
double
get_FTLCapacity(
) const
-
double
get_FTLUse(
) const
-
bool
get_FTLShortage(
) const
-
bool
isFTLShortage(
double
amt
) const
-
double
get_EnergyIncome(
) const
-
double
get_EnergyStored(
) const
-
double
get_EnergyUse(
) const
-
double
get_EnergyEfficiency(
) const
-
bool
get_EnergyShortage(
) const
-
bool
isEnergyShortage(
double
amt
) const
-
int
get_TotalBudget(
) const
-
int
get_MaintenanceBudget(
) const
-
int
get_RemainingBudget(
) const
-
int
get_ForwardBudget(
) const
-
int
get_BonusBudget(
) const
-
int
get_EstNextBudget(
) const
-
int
getMoneyFromType(
uint
type
) const
-
uint
get_WelfareMode(
) const
-
int
getEstBudgetConsuming(
int
amount
) const
-
double
get_BorrowRate(
) const
-
double
get_BudgetCycle(
) const
-
double
get_BudgetTimer(
) const
-
bool
canBorrow(
int
amount
) const
-
bool
canPay(
int
amount
) const
-
float
get_DebtFactor(
) const
-
void
set_WelfareMode(
uint
mode
)
-
void
resourceTick(
double
time
)
-
void
modFTLCapacity(
double
amount
)
-
void
modFTLStored(
double
amount
)
-
void
modFTLIncome(
double
amount
)
-
void
modFTLUse(
double
amount
)
-
double
consumeFTL(
double
amount,
bool
partial = true
)
-
bool
consumeFTLUse(
double
amount
)
-
void
modEnergyStored(
double
amount
)
-
void
modEnergyAllocated(
double
amount
)
-
void
modEnergyIncome(
double
amount
)
-
void
modEnergyUse(
double
amount
)
-
double
consumeEnergy(
double
amount,
bool
consumePartial = true
)
-
bool
consumeEnergyUse(
double
amount
)
-
void
addFloatedEnergy(
const Empire@
other,
double
amount
)
-
int
get_BudgetCycleId(
)
-
int
consumeBudget(
int
amount,
bool
borrow = true
)
-
void
refundBudget(
int
amount,
int
cycleId
)
-
void
modMaintenance(
int
amount,
uint
type = 0
)
-
void
modTotalBudget(
int
amount,
uint
type = 0
)
-
void
modForwardBudget(
int
amount
)
-
void
addBonusBudget(
int
amount
)
-
void
modRemainingBudget(
int
amount
)
-
void
resetBudget(
)
-
void
modTotalPopulation(
double
amount
)
-
void
writeResources(
Message&
msg
)
-
void
readResources(
Message&
msg
)
-
bool
get_hasResourceManager(
) const
-
Component_ResourceManager@
get_ResourceManager(
)
-
bool
hasTrait(
uint
id
) const
-
void
addTrait(
uint
id
)
-
void
preInitTraits(
)
-
void
initTraits(
)
-
void
postInitTraits(
)
-
void
traitsTick(
double
time
)
-
void
writeTraits(
Message&
msg
)
-
void
readTraits(
Message&
msg
)
-
bool
get_hasTraits(
) const
-
Component_Traits@
get_Traits(
)
-
vec3d
get_aiFocus(
)
-
int
get_difficulty(
)
-
uint
getAIType(
)
-
void
aiTick(
double
time
)
-
void
aiPing(
const Empire@
fromEmpire,
vec3d
position,
uint
type = 0
)
-
void
initBasicAI(
)
-
void
debugAI(
)
-
void
commandAI(
string
cmd
)
-
bool
get_hasEmpireAI(
) const
-
Component_EmpireAI@
get_EmpireAI(
)
-
uint
get_fleetCount(
)
-
Object@
get_fleets(
uint
index
)
-
Object@
getFleetFromPosition(
vec3d
pos
)
-
DataList@
getFlagships(
)
-
void
registerFleet(
const Object@
obj
)
-
void
unregisterFleet(
const Object@
obj
)
-
double
getTotalFleetStrength(
)
-
bool
get_hasFleetManager(
) const
-
Component_FleetManager@
get_FleetManager(
)
-
int
get_Influence(
)
-
double
get_InfluenceIncome(
)
-
double
get_InfluencePercentage(
)
-
double
get_InfluenceEfficiency(
)
-
double
get_InfluenceCap(
)
-
double
get_InfluenceFactor(
)
-
uint
getInfluenceCardCount(
)
-
DataList@
getInfluenceCards(
)
-
DataList@
getInfluenceCard(
int
id
)
-
uint
getInfluenceCardType(
int
id
)
-
int
getInfluenceCardUses(
int
id
)
-
int
getInfluenceCardQuality(
int
id
)
-
uint
getEdictType(
)
-
Empire@
getEdictEmpire(
)
-
Object@
getEdictObject(
)
-
void
clearEdict(
)
-
void
conquerEdict(
const Empire@
onEmpire
)
-
void
addInfluence(
double
amount
)
-
void
modInfluence(
int
amount
)
-
void
modInfluenceIncome(
int
amount
)
-
void
modInfluenceFactor(
double
amount
)
-
int
getInfluenceStock(
)
-
void
takeCardUse(
int
id,
uint
amount = 1
)
-
void
copyCardTo(
int
id,
const Empire@
emp,
int
uses = 0,
bool
maxQuality = false,
int
addQuality = 0
)
-
void
gainRandomLeverage(
const Empire@
towards,
double
qualityFactor = 1.0
)
-
bool
gainIntelligence(
const Empire@
towards,
uint
amount = 1
)
-
int
reserveInfluence(
double
factor,
double
timer = -1.0
)
-
void
removeInfluenceReservation(
int
id
)
-
void
influenceTick(
double
time
)
-
bool
consumeInfluence(
int
amount
)
-
void
writeInfluenceManager(
Message&
msg,
bool
initial = false
) const
-
void
readInfluenceManager(
Message&
msg
)
-
bool
get_hasInfluenceManager(
) const
-
Component_InfluenceManager@
get_InfluenceManager(
)
-
uint
get_notificationCount(
) const
-
DataList@
getNotifications(
uint
limit,
int
beforeId = -1,
bool
reverse = true
) const
-
void
notifyVote(
int
voteId,
int
eventId
)
-
void
notifyWarStatus(
const Empire@
withEmpire,
uint
type
)
-
void
notifyWarEvent(
const Object@
forObject,
uint
type
)
-
void
notifyWonder(
const Empire@
fromEmpire,
uint
type
)
-
void
notifyRename(
const Object@
forObject,
string
fromName,
string
toName
)
-
void
notifyAnomaly(
const Object@
forObject
)
-
void
notifyFlagship(
const Object@
forObject
)
-
void
notifyStructure(
const Object@
atObject,
uint
type
)
-
void
notifyEmpireMet(
const Object@
atObject,
const Empire@
empire
)
-
void
notifyGeneric(
string
title,
string
desc,
string
icon = "",
const Empire@
fromEmp = null,
const Object@
forObject = null
)
-
void
notifyTreaty(
uint
treatyId,
uint
eventType,
const Empire@
empOne = null,
const Empire@
empTwo = null
)
-
void
writeNotifications(
Message&
msg,
bool
delta
)
-
void
readNotifications(
Message&
msg,
bool
delta
)
-
bool
get_hasNotifications(
) const
-
Component_Notifications@
get_Notifications(
)
-
double
get_ResearchRate(
)
-
uint
get_AvailableInsights(
uint
type
)
-
DataList@
getResearchProjects(
)
-
DataList@
getCurrentResearchProjects(
)
-
DataList@
getResearchFields(
)
-
DataList@
getResearchFieldByID(
uint
id
)
-
uint
get_ActiveResearchField(
)
-
uint
get_LevelsPerInsight(
)
-
uint
get_RemainingLevelsToInsight(
)
-
void
setActiveResearchField(
uint
id
)
-
void
researchProject(
int
id
)
-
void
modResearchRate(
double
mod
)
-
void
generatePoints(
double
pts
)
-
void
initResearch(
)
-
void
researchTick(
double
time
)
-
void
addInsight(
uint
type,
uint
count = 1
)
-
void
addWeightedInsight(
uint
count = 1
)
-
void
grantRandomTheoreticalProject(
uint
level
)
-
void
unlockField(
uint
id
)
-
void
modLevelsPerInsight(
int
mod
)
-
void
writeResearch(
Message&
msg,
bool
initial = false
)
-
void
readResearch(
Message&
msg
)
-
bool
get_hasResearchGrid(
) const
-
Component_ResearchGrid@
get_ResearchGrid(
)
-
double
get_attributes(
uint
index
) const
-
void
set_attributes(
uint
index,
double
value
)
-
void
writeSyncedStates(
Message&
msg
)
-
void
readSyncedStates(
Message&
msg
)
bool
canBorrow(
int
amount
) const
-
int
amount — Total amount of money that would be borrowed.
Returns
bool
: Whether it's possible to borrow that amount of money without getting a negative next budget.
bool
canPay(
int
amount
) const
-
int
amount — Amount of money that would be spent.
Returns
bool
: Whether it's possible to spend that amount of money, including borrowing, without getting a negative next budget.
int
consumeBudget(
int
amount,
bool
borrow = true
)
Spend a chunk of money from the remaining budget.
-
int
amount — Amount of money to spend.
-
bool
borrow — Whether to allow borrowing some or all of the money.
Returns
int
: Budget cycle ID the money was spent in, -1 if unsuccesful.