fix: fixed building gamestate events (and the tests relating to that)
This commit is contained in:
parent
bbcff5d94b
commit
4203092f9a
@ -269,7 +269,9 @@ public class EventBuilder {
|
||||
gameStateEvent.type = this.type;
|
||||
gameStateEvent.entities = this.entities;
|
||||
gameStateEvent.turnOrder = this.turnOrder;
|
||||
gameStateEvent.mapSize = this.mapSize;
|
||||
gameStateEvent.activeCharacter = this.activeCharacter;
|
||||
gameStateEvent.stoneCooldowns = this.stoneCooldowns;
|
||||
gameStateEvent.winCondition = this.winCondition;
|
||||
return gameStateEvent;
|
||||
}
|
||||
|
@ -259,7 +259,9 @@ class EventBuilderTest {
|
||||
assertThat(new EventBuilder(EventType.GameStateEvent) // no exception if all properties present
|
||||
.withEntities(entities)
|
||||
.withTurnOrder(turns)
|
||||
.withMapSize(new IntVector2(42, 24))
|
||||
.withActiveCharacter(turn)
|
||||
.withStoneCooldowns(new Integer[] {6, 5, 4, 3, 2, 1})
|
||||
.withWinCondition(false)
|
||||
.buildGameStateEvent()
|
||||
.check()).isTrue();
|
||||
|
Loading…
Reference in New Issue
Block a user