refactor: introduce utils method for converting arrays into arraylists and make methods accessible with either
This commit is contained in:
@ -49,6 +49,16 @@ class GameStateManager {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Applies an array of {@link Event}s to the game state.
|
||||
* @param events The events to apply
|
||||
*/
|
||||
public void applyEvents(Event[] events) {
|
||||
for(Event event: events) {
|
||||
GameLogic.applyEvent(state, event);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Applies an array of {@link Event}s to the game state.
|
||||
* @param events The events to apply
|
||||
|
Reference in New Issue
Block a user