* @param realm Realm to execute the command
* @return CommandResult
*/
public CommandResult execute(Realm realm) {
if (unit != null) {
Order order = unit.getNextOrder();
if (order != null) {
order.execute(realm);
if (order.isComplete()) {
unit.removeOrder(order);
if (unit.getNextOrder() != null) {
unit.getNextOrder().setTurnGiven(realm.getNumberOfTurns());
}
}