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

Inheritance: BaseModel
显示文件 Open project: TheAirlineProject/tap-desktop Class Usage Examples

Private Properties

Property Type Description
Scenario System

Public Methods

Method 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

Method Description
Scenario ( SerializationInfo info, StreamingContext ctxt ) : System

Method Details

AddDestination() public method

public AddDestination ( Airport destination ) : void
destination TheAirline.Models.Airports.Airport
return void

AddFleet() public method

public AddFleet ( AirlinerType type, int quantity ) : void
type TheAirline.Models.Airliners.AirlinerType
quantity int
return void

AddOpponentAirline() public method

public AddOpponentAirline ( ScenarioAirline airline ) : void
airline ScenarioAirline
return void

AddPassengerDemand() public method

public AddPassengerDemand ( ScenarioPassengerDemand demand ) : void
demand ScenarioPassengerDemand
return void

AddRoute() public method

public AddRoute ( ScenarioAirlineRoute route ) : void
route ScenarioAirlineRoute
return void

AddScenarioFailure() public method

public AddScenarioFailure ( ScenarioFailure failure ) : void
failure ScenarioFailure
return void

GetObjectData() public method

public GetObjectData ( SerializationInfo info, StreamingContext context ) : void
info System.Runtime.Serialization.SerializationInfo
context System.Runtime.Serialization.StreamingContext
return void

Scenario() public method

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
return System