Implemented proper map size handling in Display

This commit is contained in:
Bokros Bálint
2016-05-14 02:51:10 +02:00
committed by Kjistóf
parent df3bb34969
commit 4f11f60b50
2 changed files with 9 additions and 3 deletions

View File

@ -69,6 +69,8 @@ public class Game {
oneill = new Player("O'Neill", players.get("oneill"), Direction.getRandom());
jaffa = new Player("Jaffa", players.get("jaffa"), Direction.getRandom());
replicator = new PlayerBase("Replicator", players.get("replicator"), Direction.getRandom());
display.setMapSize(dungeon.getMapWidth(), dungeon.getMapHeight());
display.addVisual(new PlayerDrawer(oneill));
display.addVisual(new PlayerDrawer(jaffa));