| 21 | constexpr int Base::SIZE; |
| 22 | |
| 23 | template <> sp<Base> StateObject<Base>::get(const GameState &state, const UString &id) |
| 24 | { |
| 25 | auto it = state.player_bases.find(id); |
| 26 | if (it == state.player_bases.end()) |
| 27 | { |
| 28 | LogError("No baseas matching ID \"%s\"", id); |
| 29 | return nullptr; |
| 30 | } |
| 31 | return it->second; |
| 32 | } |
| 33 | |
| 34 | template <> const UString &StateObject<Base>::getPrefix() |
| 35 | { |
no test coverage detected