| 31 | } |
| 32 | |
| 33 | Message* get(MessageId id) |
| 34 | { |
| 35 | if (enumValue(id) >= Limits::kMaxMessages) |
| 36 | { |
| 37 | return nullptr; |
| 38 | } |
| 39 | return &rawMessages()[enumValue(id)]; |
| 40 | } |
| 41 | |
| 42 | MessageId getActiveIndex() { return getGameState().activeMessageIndex; } |
| 43 | void setActiveIndex(const MessageId newIndex) { getGameState().activeMessageIndex = newIndex; } |
no test coverage detected