cPlayer class
Base classes
- class cGameData
- Base class for most Simulator objects.
- class App::IMessageListener
- An interface that can receive messages sent through the app.
Public static variables
Public functions
-
auto EmpireIsAwareOfPlayer(uint32_
t empireID) -> bool - Checks whether the specified empire is aware of the player.
-
auto PlayerContactedEmpire(uint32_
t empireID) -> bool - Checks whether the player has ever contacted the specified empire.
Public variables
- eastl::sp_fixed_hash_set<ResourceKey, 64> mOneTimeEventFlags
- int field_68C
- int field_690
- int field_694
- eastl::sp_fixed_hash_map<int, int, 128> mFlags
- cCollectableItemsPtr mpCRGItems
- int field_10EC
- float mCurrentGoalProgress
- float mGoalProgressTotal
-
uint32_
t mUniqueGameID -
uint32_
t mCellConsequenceTrait -
uint32_
t mCreatureConsequenceTrait -
uint32_
t mTribeConsequenceTrait -
uint32_
t mCivConsequenceTrait -
uint32_
t mSpaceConsequenceTrait - char field_1110
-
eastl::hash_set<uint32_
t> mGameEventRecord - eastl::vector<eastl::vector<cSpatialObjectPtr>> mSelectionGroups
- ResourceKey mSelectedCityHallKey
- ResourceKey mSelectedVehicleKey
- ResourceKey mSelectedUFOKey
- int field_1174
-
Math::
Vector3 mCapitalCityPos - eastl::vector<StarID> mStarsVisited
- eastl::vector<StarID> mStarsKnown
- eastl::vector<StarID> mWormholesUsed
- eastl::vector<int> mPlanetData
- eastl::map<int, int> mPlayerSpecificEmpireData
- bool mHasCheated
- int field_11F4
- eastl::map<int, cSpacePlayerWarData> mSpacePlayerWarData
-
eastl::vector<eastl::pair<uint32_
t, cGonzagoTimer>> mPlayerCaptureProgressStars - eastl::map<int, eastl::pair<int, int>> mEmbassies
-
uint32_
t mThemeID - Difficulty mDifficultyLevel
- int mMaxPosseSize
- int mTempPosseCount
- int field_1254
- cGonzagoTimer mSoothingSongTimer
- float mSocialTraitProgress
- float mCombatTraitProgress
- ResourceKey mPirateUFOModelKey
- unsigned int mTotalTimeInCVG
- ResourceKey mInitCaptainKey
-
eastl::fixed_vector<uint32_
t, 9> mAdventuresCompleted
Function documentation
bool Simulator:: cPlayer:: EmpireIsAwareOfPlayer(uint32_ t empireID)
Checks whether the specified empire is aware of the player.
| Parameters | |
|---|---|
| empireID | The ID of the empire to check. |
| Returns | True if the empire is aware of the player, false otherwise. |
An empire is considered "aware" if the player has contacted it at least once, or if the empire has ever sent a transmission to the player.
bool Simulator:: cPlayer:: PlayerContactedEmpire(uint32_ t empireID)
Checks whether the player has ever contacted the specified empire.
| Parameters | |
|---|---|
| empireID | The ID of the empire to check. |
| Returns | True if the player has contacted the empire at least once, false otherwise. |