C# Class TheAirline.Models.General.Scenarios.Scenario

Inheritance: BaseModel
Afficher le fichier Open project: TheAirlineProject/tap-desktop Class Usage Examples

Private Properties

Свойство Type Description
Scenario System

Méthodes publiques

Méthode Description
AddDestination ( Airport destination ) : void
AddFleet ( AirlinerType type, int quantity ) : void
AddOpponentAirline ( ScenarioAirline airline ) : void
AddPassengerDemand ( ScenarioPassengerDemand demand ) : void
AddRoute ( ScenarioAirlineRoute route ) : void
AddScenarioFailure ( ScenarioFailure failure ) : void
GetObjectData ( SerializationInfo info, StreamingContext context ) : void
Scenario ( string name, string description, Airline airline, Airport homebase, int startyear, int endyear, long startcash, DifficultyLevel difficulty ) : System

Private Methods

Méthode Description
Scenario ( SerializationInfo info, StreamingContext ctxt ) : System

Method Details

AddDestination() public méthode

public AddDestination ( Airport destination ) : void
destination TheAirline.Models.Airports.Airport
Résultat void

AddFleet() public méthode

public AddFleet ( AirlinerType type, int quantity ) : void
type TheAirline.Models.Airliners.AirlinerType
quantity int
Résultat void

AddOpponentAirline() public méthode

public AddOpponentAirline ( ScenarioAirline airline ) : void
airline ScenarioAirline
Résultat void

AddPassengerDemand() public méthode

public AddPassengerDemand ( ScenarioPassengerDemand demand ) : void
demand ScenarioPassengerDemand
Résultat void

AddRoute() public méthode

public AddRoute ( ScenarioAirlineRoute route ) : void
route ScenarioAirlineRoute
Résultat void

AddScenarioFailure() public méthode

public AddScenarioFailure ( ScenarioFailure failure ) : void
failure ScenarioFailure
Résultat void

GetObjectData() public méthode

public GetObjectData ( SerializationInfo info, StreamingContext context ) : void
info System.Runtime.Serialization.SerializationInfo
context System.Runtime.Serialization.StreamingContext
Résultat void

Scenario() public méthode

public Scenario ( string name, string description, Airline airline, Airport homebase, int startyear, int endyear, long startcash, DifficultyLevel difficulty ) : System
name string
description string
airline Airline
homebase Airport
startyear int
endyear int
startcash long
difficulty DifficultyLevel
Résultat System