Beispiel #1
0
 public <T extends GameObject> void placeGameObjectStep(
     GameObjectMap<T> goMap, T gameObject, Cords endCords) {
   goMap.place(endCords, gameObject);
   currentTurnSteps.makeStep(goMap, gameObject, null, endCords);
 }
Beispiel #2
0
 public <T extends GameObject> void killStep(GameObjectMap<T> goMap, Cords startCords) {
   currentTurnSteps.makeStep(goMap, goMap.get(startCords), startCords, null);
   goMap.kill(startCords);
 }
Beispiel #3
0
 public <T extends GameObject> void makeMoveStep(
     GameObjectMap<T> goMap, Cords startCords, Cords endCords) {
   currentTurnSteps.makeStep(goMap, goMap.get(startCords), startCords, endCords);
   goMap.makeMove(startCords, endCords);
 }