コード例 #1
0
        public SubsidiaryAirline(Airline airline,AirlineProfile profile, AirlineMentality mentality, AirlineFocus market, AirlineLicense license,Route.RouteType routefocus)
            : base(profile, mentality, market,license,routefocus)
        {
            this.Airline = airline;

            foreach (AirlineLogo logo in this.Airline.Profile.Logos)
                this.Profile.addLogo(logo);
        }
コード例 #2
0
        public SubsidiaryAirline(Airline airline, AirlineProfile profile, AirlineMentality mentality, AirlineFocus market, AirlineLicense license, Route.RouteType routefocus)
            : base(profile, mentality, market, license, routefocus)
        {
            this.Airline = airline;

            foreach (AirlineLogo logo in this.Airline.Profile.Logos)
            {
                this.Profile.addLogo(logo);
            }
        }
コード例 #3
0
        public Airline(
            AirlineProfile profile,
            AirlineMentality mentality,
            AirlineFocus marketFocus,
            AirlineLicense license,
            Route.RouteType routeFocus)
        {
            Scores = new AirlineScores();
            Shares = new List<AirlineShare>();
            Airports = new List<Airport>();
            Fleet = new List<FleetAirliner>();
            Routes = new List<Route>();
            FutureAirlines = new List<FutureSubsidiaryAirline>();
            Subsidiaries = new List<SubsidiaryAirline>();
            Advertisements = new Dictionary<AdvertisementType.AirlineAdvertisementType, AdvertisementType>();
            Codeshares = new List<CodeshareAgreement>();
            Statistics = new GeneralStatistics();
            Facilities = new List<AirlineFacility>();
            Invoices = new Invoices();
            Budget = new AirlineBudget();
            BudgetHistory = new Dictionary<DateTime, AirlineBudget>();
            TestBudget = new Dictionary<DateTime, AirlineBudget>();
            Profile = profile;
            AirlineRouteFocus = routeFocus;
            Loans = new List<Loan>();
            Reputation = 50;
            Alliances = new List<Alliance>();
            Mentality = mentality;
            MarketFocus = marketFocus;
            License = license;
            Policies = new List<AirlinePolicy>();
            EventLog = new List<RandomEvent>();
            Ratings = new AirlineRatings();
            OverallScore = CountedScores = 0;
            GameScores = new Dictionary<DateTime, int>();
            InsuranceClaims = new List<InsuranceClaim>();
            InsurancePolicies = new List<AirlineInsurance>();
            SpecialContracts = new List<SpecialContract>();

            CreateStandardAdvertisement();

            Pilots = new List<Pilot>();
            FlightSchools = new List<FlightSchool>();
            Budget = new AirlineBudget();
        }
コード例 #4
0
ファイル: Airline.cs プロジェクト: travelmate37/tap-desktop
        public Airline(AirlineProfile profile, AirlineMentality mentality, AirlineFocus marketFocus, AirlineLicense license, Route.RouteType routeFocus)
        {
            this.Scores            = new AirlineScores();
            this.Airports          = new List <Airport>();
            this.Fleet             = new List <FleetAirliner>();
            this._Routes           = new List <Route>();
            this.FutureAirlines    = new List <FutureSubsidiaryAirline>();
            this.Subsidiaries      = new List <SubsidiaryAirline>();
            this.Advertisements    = new Dictionary <AdvertisementType.AirlineAdvertisementType, AdvertisementType>();
            this.Statistics        = new GeneralStatistics();
            this.Facilities        = new List <AirlineFacility>();
            this.Invoices          = new Invoices();
            this.Budget            = new AirlineBudget();
            this.BudgetHistory     = new Dictionary <DateTime, AirlineBudget>();
            this.TestBudget        = new Dictionary <DateTime, AirlineBudget>();
            this.Profile           = profile;
            this.AirlineRouteFocus = routeFocus;
            this.Loans             = new List <Loan>();
            this.Reputation        = 50;
            this.Alliances         = new List <Alliance>();
            this.Mentality         = mentality;
            this.MarketFocus       = marketFocus;
            this.License           = license;
            this.FlightCodes       = new List <string>();
            this.Policies          = new List <AirlinePolicy>();
            this.EventLog          = new List <RandomEvent>();
            this.Ratings           = new AirlineRatings();
            this.OverallScore      = this.CountedScores = 0;
            this.GameScores        = new Dictionary <DateTime, int>();
            this.InsuranceClaims   = new List <InsuranceClaim>();
            this.InsurancePolicies = new List <AirlineInsurance>();
            for (int i = 1; i < 10000; i++)
            {
                this.FlightCodes.Add(string.Format("{0}{1:0000}", this.Profile.IATACode, i));
            }

            createStandardAdvertisement();

            this.Pilots        = new List <Pilot>();
            this.FlightSchools = new List <FlightSchool>();
            this.Budget        = new AirlineBudget();
        }
コード例 #5
0
ファイル: Airline.cs プロジェクト: rhgtvcx/tap-desktop
        public Airline(AirlineProfile profile, AirlineMentality mentality, AirlineFocus marketFocus, AirlineLicense license, Route.RouteType routeFocus)
        {
            this.Scores = new AirlineScores();
            this.Airports = new List<Airport>();
            this.Fleet = new List<FleetAirliner>();
            this._Routes = new List<Route>();
            this.FutureAirlines = new List<FutureSubsidiaryAirline>();
            this.Subsidiaries = new List<SubsidiaryAirline>();
            this.Advertisements = new Dictionary<AdvertisementType.AirlineAdvertisementType, AdvertisementType>();
            this.Statistics = new GeneralStatistics();
            this.Facilities = new List<AirlineFacility>();
            this.Invoices = new Invoices();
            this.Budget = new AirlineBudget();
            this.BudgetHistory = new Dictionary<DateTime, AirlineBudget>();
            this.TestBudget = new Dictionary<DateTime, AirlineBudget>();
            this.Profile = profile;
            this.AirlineRouteFocus = routeFocus;
            this.Loans = new List<Loan>();
            this.Reputation = 50;
            this.Alliances = new List<Alliance>();
            this.Mentality = mentality;
            this.MarketFocus = marketFocus;
            this.License = license;
            this.FlightCodes = new List<string>();
            this.Policies = new List<AirlinePolicy>();
            this.EventLog = new List<RandomEvent>();
            this.Ratings = new AirlineRatings();
            this.OverallScore = this.CountedScores = 0;
            this.GameScores = new Dictionary<DateTime, int>();
            this.InsuranceClaims = new List<InsuranceClaim>();
            this.InsurancePolicies = new List<AirlineInsurance>();
            for (int i = 1; i < 10000; i++)
                this.FlightCodes.Add(string.Format("{0}{1:0000}",this.Profile.IATACode, i));

            createStandardAdvertisement();

            this.Pilots = new List<Pilot>();
            this.FlightSchools = new List<FlightSchool>();
            this.Budget = new AirlineBudget();
        }
コード例 #6
0
 public SubsidiaryAirline(Airline airline,AirlineProfile profile, AirlineMentality mentality, AirlineFocus market, AirlineLicense license,Route.RouteType routefocus)
     : base(profile, mentality, market,license,routefocus)
 {
     this.Airline = airline;
     this.Profile.Logos = this.Airline.Profile.Logos;
 }