public BattleAISystem(IBattleManager mgr) : base(mgr)
    {
        _AICommander = new AICommander();
        _AIBuilder   = new AIBuilder();

        _AICommander.sender      = facade.SendNotification;
        _AIBuilder.sender        = facade.SendNotification;
        _AIBuilder.mapProxy      = facade.RetrieveProxy(MapVOProxy.NAME) as MapVOProxy;
        _AIBuilder.buildingProxy = facade.RetrieveProxy(BuildingVOProxy.NAME) as BuildingVOProxy;
    }
Beispiel #2
0
 // Expose AIBuilder methods so they can be used without instance prefix
 public static void EnableAIBuilder(bool enable)
 {
     AIBuilder.EnableAIBuilder(enable);
 }
Beispiel #3
0
 void Start()
 {
     simulationScript = GetComponent<SimulationScript>();
     aiBuilder = GetComponent<AIBuilder>();
 }
Beispiel #4
0
    // Use this for initialization
    void Start()
    {
        populationTimer = populationCycleTime;
        population = 20.0f;

        food = 50.0f;

        happiness = 50.0f;
        happinessTimer = happinessCycleTime;

        aiBuilder = GetComponent<AIBuilder>();
        gridLoader = GetComponent<GridLoader>();
        cameraControl = GameObject.FindGameObjectWithTag("MainCamera").GetComponent<CameraControl>();
        defeat = false;
    }