| 27 | static const unsigned TICKS_PER_PSI_TRAINING = 4 * TICKS_PER_HOUR; |
| 28 | |
| 29 | template <> sp<Agent> StateObject<Agent>::get(const GameState &state, const UString &id) |
| 30 | { |
| 31 | auto it = state.agents.find(id); |
| 32 | if (it == state.agents.end()) |
| 33 | { |
| 34 | LogError("No agent matching ID \"%s\"", id); |
| 35 | return nullptr; |
| 36 | } |
| 37 | return it->second; |
| 38 | } |
| 39 | |
| 40 | template <> const UString &StateObject<Agent>::getPrefix() |
| 41 | { |
no test coverage detected