Merge branch 'master' of https://github.com/bokrosbalint/cicaprojekt
This commit is contained in:
commit
689e7c6324
@ -24,14 +24,26 @@ public class Tester {
|
||||
return dungeon;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void listPlayers() {
|
||||
System.out.println(oneill);
|
||||
System.out.println(jaffa);
|
||||
System.out.println(replicator);
|
||||
}
|
||||
|
||||
void move(String param) {
|
||||
switch (param) {
|
||||
case "O" :
|
||||
oneill.move(oneill.getFacingDirection());
|
||||
break;
|
||||
case "J" :
|
||||
jaffa.move(jaffa.getFacingDirection());
|
||||
break;
|
||||
default:
|
||||
//TODO error handling
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/* custom Test annotation */
|
||||
@Target(ElementType.METHOD) // it's for methods
|
||||
@Retention(RetentionPolicy.RUNTIME) // we want to retain annotations in runtime
|
||||
|
Loading…
Reference in New Issue
Block a user