예제 #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;
 }
예제 #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);
 }
예제 #3
0
 public void RemoveStation(CampaignStation station)
 {
     station.addMoney -= AddMoney;
     station.addTradeRoute -= AddTradeRoute;
     station.buy -= Buy;
     station.addFleet -= AddFleet;
     this.stations.Remove(station);
 }
예제 #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);
 }
예제 #6
0
파일: Planet.cs 프로젝트: sean-h/spacegame
    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));
    }
예제 #7
0
 public AIObjectiveBuildSquadron(CampaignSquadron squadron, CampaignStation stationToBuildAt)
 {
     squadronToBuild = squadron;
     station = stationToBuildAt;
 }
예제 #8
0
 public List<CampaignSquadron> GetSquadrons(CampaignStation station)
 {
     List<CampaignSquadron> squadronsToReturn = new List<CampaignSquadron>();
     return squadronsToReturn;
 }
예제 #9
0
 public AIObjectiveBuildFleet(CampaignStation station)
 {
     this.station = station;
     shipConfigurationManager = GameObject.Find("ShipConfigurationManager").GetComponent<ShipConfigurationManager>();
 }