public <T extends GameObject> void placeGameObjectStep( GameObjectMap<T> goMap, T gameObject, Cords endCords) { goMap.place(endCords, gameObject); currentTurnSteps.makeStep(goMap, gameObject, null, endCords); }
public <T extends GameObject> void killStep(GameObjectMap<T> goMap, Cords startCords) { currentTurnSteps.makeStep(goMap, goMap.get(startCords), startCords, null); goMap.kill(startCords); }
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); }