IncNextTurn prepares the runtime state for the next turn.
()
| 198 | |
| 199 | // IncNextTurn prepares the runtime state for the next turn. |
| 200 | func (r *runtime) IncNextTurn() { |
| 201 | r.stateMutex.Lock() |
| 202 | defer r.stateMutex.Unlock() |
| 203 | r.nextTurn++ |
| 204 | } |
| 205 | |
| 206 | // SetNextTurn sets the runtime state to the given turn. |
| 207 | func (r *runtime) SetNextTurn(turn int32) { |
no outgoing calls
no test coverage detected