Implemented listPlayers
This commit is contained in:
parent
c26b3ae75f
commit
43653de8c9
@ -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);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user