float movementCost = 0;
Iterator<Property> propertyEditor = getPropertiesIterator();
while (propertyEditor.hasNext()) {
Property property = propertyEditor.next();
if (property instanceof SetMovementCost) {
SetMovementCost setMovementCost = (SetMovementCost) property;
if (movementCost == 0 || setMovementCost.getMovementCost() < movementCost) {
movementCost = setMovementCost.getMovementCost();
}
}
}
return movementCost;
}