Implemented listPlayers

This commit is contained in:
Bokros Bálint 2016-04-25 19:18:22 +02:00
parent c26b3ae75f
commit 43653de8c9

View File

@ -1,12 +1,25 @@
package cicaprojekt; package cicaprojekt;
import java.io.Console;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
public class Tester { public class Tester {
Player oneill;
Player jaffa;
PlayerBase replicator;
Dungeon loadMap(String param) throws IOException{ Dungeon loadMap(String param) throws IOException{
Dungeon dungeon = new Dungeon(); Dungeon dungeon = new Dungeon();
dungeon.buildDungeon(new File(param)); dungeon.buildDungeon(new File(param));
return dungeon; return dungeon;
} }
void listPlayers() {
System.out.println(oneill);
System.out.println(jaffa);
System.out.println(replicator);
}
} }