@Override public void undo() throws CannotUndoException { super.undo(); CombatEntity entity = getEntity(); entity.removeLastAction(); worldModel.getCombatModel().getPositionModel().removeEntity(entity); }
@Override public void redo() throws CannotRedoException { super.redo(); CombatEntity entity = getEntity(); CombatEntityAction action = getAction(); worldModel.getCombatModel().joinCombat(entity, roll); entity.addAction(action); }