MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / ObjSide

Function ObjSide

engine/Poseidon/Game/Commands/GameStateExtUi.cpp:2027–2036  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2025 DisplayMap* map = dynamic_cast<DisplayMap*>(GWorld->Map());
2026 if (!map)
2027 {
2028 return false;
2029 }
2030 return map->IsShownGPS();
2031}
2032
2033GameValue ObjSide(const GameState* state, GameValuePar oper1)
2034{
2035 Object* obj1 = GetObject(oper1);
2036 EntityAI* ai = dyn_cast<EntityAI>(obj1);
2037 if (!ai)
2038 {
2039 return CreateGameSide(TSideUnknown);

Callers

nothing calls this directly

Calls 3

CreateGameSideFunction · 0.85
GetObjectFunction · 0.70
GetTargetSideMethod · 0.45

Tested by

no test coverage detected