Package org.freerealm.unit

Examples of org.freerealm.unit.Order


     * @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());
                    }
                }
View Full Code Here

TOP

Related Classes of org.freerealm.unit.Order

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.