| 15 | { |
| 16 | |
| 17 | template <> 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 | |
| 28 | template <> const UString &StateObject<BattleDoor>::getPrefix() |
| 29 | { |
no test coverage detected