Package com.fray.evo.util

Examples of com.fray.evo.util.Building


                madeBusyBy.get(consumes.getId()).add(this);
                actionBusyIn.put(this, consumes);
            }
  }
    public void makeNotBusy(ArrayList<ArrayList<EcAction>> madeBusyBy,HashMap<EcAction,Building> actionBusyIn )
    {        Building busyBuilding = actionBusyIn.get(this);
        madeBusyBy.get(busyBuilding.getId()).remove(this);
        actionBusyIn.remove(this);
    }
View Full Code Here


        }
        return isPossibleResources(s);
    }

    protected void postExecute(EcBuildOrder s, GameLog e) {
        Building builtFrom = ((Unit) buildable).getBuiltFrom();
        if (builtFrom != null) {
            s.makeBuildingNotBusy(this);
        }
        s.addUnits((Unit) buildable, 1);
    }
View Full Code Here

        }
        s.addUnits((Unit) buildable, 1);
    }

    protected void preExecute(EcBuildOrder s) {
        Building builtFrom = ((Unit) buildable).getBuiltFrom();
        if (builtFrom != null) {
            s.makeBuildingBusy(builtFrom, this);
        }
        Buildable consumes = getConsumes();
        if (consumes != null && getConsumes() != ZergUnitLibrary.Larva) {
View Full Code Here

                if (!s.isUpgrade((Upgrade) req)) {
                    return true;
                }
            }
        }
        Building builtFrom = ((Unit) buildable).getBuiltFrom();
        if (builtFrom != null && !s.doesNonBusyExist(((Unit)buildable).getBuiltFrom())) {
            return true;
        }
        return false;
    }
View Full Code Here

TOP

Related Classes of com.fray.evo.util.Building

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.