MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / get

Method get

game/state/battle/battledoor.cpp:17–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15{
16
17template <> sp<BattleDoor> StateObject<BattleDoor>::get(const GameState &state, const UString &id)
18{
19 auto it = state.current_battle->doors.find(id);
20 if (it == state.current_battle->doors.end())
21 {
22 LogError("No agent_type matching ID \"%s\"", id);
23 return nullptr;
24 }
25 return it->second;
26}
27
28template <> const UString &StateObject<BattleDoor>::getPrefix()
29{

Callers 3

battledoor.cppFile · 0.45
getSupportedPartsMethod · 0.45
startMethod · 0.45

Calls 1

endMethod · 0.80

Tested by

no test coverage detected