Game.startGame() modified.

startGame now adds Players and Replicator to Display.
This commit is contained in:
ericnerdo 2016-05-13 14:34:05 +02:00
parent dce3313c83
commit cf52cb6cba

View File

@ -44,7 +44,11 @@ public class Game {
oneill = new Player("O'Neill", players.get("oneill"), getRandomDirection()); oneill = new Player("O'Neill", players.get("oneill"), getRandomDirection());
jaffa = new Player("Jaffa", players.get("jaffa"), getRandomDirection()); jaffa = new Player("Jaffa", players.get("jaffa"), getRandomDirection());
replicator = new PlayerBase("Replicator", players.get("replicator"), getRandomDirection()); replicator = new PlayerBase("Replicator", players.get("replicator"), getRandomDirection());
display.addVisual(new PlayerDrawer(oneill));
display.addVisual(new PlayerDrawer(jaffa));
display.addVisual(new PlayerBaseDrawer(replicator));
flowoftime.start(420*420); flowoftime.start(420*420);
} }