Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sesu8642 committed Jul 1, 2024
1 parent 2cc74c8 commit 0077b74
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import org.mockito.stubbing.Answer;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.utils.Json;
import com.badlogic.gdx.utils.JsonWriter.OutputType;
import com.google.common.eventbus.EventBus;
Expand All @@ -40,8 +39,8 @@
import de.sesu8642.feudaltactics.lib.gamestate.GameStateSerializer;
import de.sesu8642.feudaltactics.lib.gamestate.Kingdom;
import de.sesu8642.feudaltactics.lib.gamestate.Player;
import de.sesu8642.feudaltactics.lib.gamestate.Unit;
import de.sesu8642.feudaltactics.lib.gamestate.Player.Type;
import de.sesu8642.feudaltactics.lib.gamestate.Unit;
import de.sesu8642.feudaltactics.lib.ingame.botai.BotAi;
import de.sesu8642.feudaltactics.lib.ingame.botai.Intelligence;
import de.sesu8642.feudaltactics.menu.preferences.MainGamePreferences;
Expand Down Expand Up @@ -195,12 +194,12 @@ private int calculateActivePlayerCapital(GameState gameState) {

private GameState createGameState(Float landMass, Float density, Long seed) {
List<Player> players = new ArrayList<>();
players.add(new Player(new Color(0.2F, 0.45F, 0.8F, 1), Type.LOCAL_BOT));
players.add(new Player(new Color(0.75F, 0.5F, 0F, 1), Type.LOCAL_BOT));
players.add(new Player(new Color(1F, 0.67F, 0.67F, 1), Type.LOCAL_BOT));
players.add(new Player(new Color(1F, 1F, 0F, 1), Type.LOCAL_BOT));
players.add(new Player(new Color(1F, 1F, 1F, 1), Type.LOCAL_BOT));
players.add(new Player(new Color(0F, 1F, 0F, 1), Type.LOCAL_BOT));
players.add(new Player(0, Type.LOCAL_BOT));
players.add(new Player(1, Type.LOCAL_BOT));
players.add(new Player(2, Type.LOCAL_BOT));
players.add(new Player(3, Type.LOCAL_BOT));
players.add(new Player(4, Type.LOCAL_BOT));
players.add(new Player(5, Type.LOCAL_BOT));
GameState result = new GameState();
GameStateHelper.initializeMap(result, players, landMass, density, 0.2F, seed);
return result;
Expand Down

0 comments on commit 0077b74

Please sign in to comment.