Beispiel #1
0
 public void SetData(CampaignStation exportStation, CampaignStation importStation, ResourceType resourceType, int quantity)
 {
     this.exportStation = exportStation;
     this.importStation = importStation;
     this.resource = resourceType;
     this.amount = quantity;
 }
Beispiel #2
0
 public void AddStation(CampaignStation station)
 {
     station.OwnerID = this.factionID;
     station.fleetColor = this.factionColor;
     station.addMoney += AddMoney;
     station.addTradeRoute += AddTradeRoute;
     station.buy += Buy;
     station.addFleet += AddFleet;
     station.shipConfigurations = GameObject.Find("PlayerFaction").GetComponent<CampaignFaction>().shipConfigurationManager.shipConfigurations;
     this.stations.Add(station);
 }
Beispiel #3
0
 public void RemoveStation(CampaignStation station)
 {
     station.addMoney -= AddMoney;
     station.addTradeRoute -= AddTradeRoute;
     station.buy -= Buy;
     station.addFleet -= AddFleet;
     this.stations.Remove(station);
 }
Beispiel #4
0
 public void ApplyUpgrade(CampaignStation station)
 {
     station.MaxPopulation += maxPopulationIncrease;
 }
 public void AddTradeRoute(CampaignStation exportStation, CampaignStation importStation, TradeRoute.ResourceType resourceType, int quantity)
 {
     TradeRoute tradeRoute = new TradeRoute();
     tradeRoute.SetData(exportStation, importStation, resourceType, quantity);
     _tradeRoutes.Add(tradeRoute);
 }
Beispiel #6
0
    public void SetStation(CampaignStation campaignStation)
    {
        station = campaignStation;
        station.planet = this;
        planetInfo.SetColor(station.fleetColor);

        planetWindow.AddTab(station.DrawSummaryWindow, "WORKFORCE");
        planetWindow.AddTab(station.DrawRecruitmentWindow, "RECRUIT");
        planetWindow.AddTab(station.DrawStructureWindow, "BUILD");
        planetWindow.AddOverlay(station.DrawBuildQueue, new Rect(50, 300, 700, 200));
    }
 public AIObjectiveBuildSquadron(CampaignSquadron squadron, CampaignStation stationToBuildAt)
 {
     squadronToBuild = squadron;
     station = stationToBuildAt;
 }
Beispiel #8
0
 public List<CampaignSquadron> GetSquadrons(CampaignStation station)
 {
     List<CampaignSquadron> squadronsToReturn = new List<CampaignSquadron>();
     return squadronsToReturn;
 }
 public AIObjectiveBuildFleet(CampaignStation station)
 {
     this.station = station;
     shipConfigurationManager = GameObject.Find("ShipConfigurationManager").GetComponent<ShipConfigurationManager>();
 }