116117118119120121122123124
selectedUnit = null; } } public void moveSelectedUnit(NEField target){ NEGameTransaction moveTX = new NEMoveUnitTransaktion(selectedUnit.getUnitId(),target.BestWay); client.DoTransaction(moveTX); client.addToTurn(moveTX); }
125126127128129130131132
public void addToTurn(NEGameTransaction t){ turn.add(t); } public void removeLastFormTurn(){ NEGameTransaction toUndo = turn.removeLast(); if(toUndo!=null) toUndo.UndoTransaction(gameServer); }