Esempio n. 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);
 }
Esempio n. 2
0
 public <T extends GameObject> void killStep(GameObjectMap<T> goMap, Cords startCords) {
   currentTurnSteps.makeStep(goMap, goMap.get(startCords), startCords, null);
   goMap.kill(startCords);
 }
Esempio n. 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);
 }