Ejemplo 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);
 }
Ejemplo 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);
 }
Ejemplo 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);
 }