C# Class TheAirline.Models.General.RandomEvent

Inheritance: BaseModel
Mostra file Open project: TheAirlineProject/tap-desktop Class Usage Examples

Private Properties

Property Type Description
RandomEvent System

Public Methods

Method Description
AddEvent ( Airline airline, RandomEvent rEvent ) : void
CheckExpired ( ) : void
ExecuteEvents ( Airline airline, System.DateTime time ) : void
GetObjectData ( SerializationInfo info, StreamingContext context ) : void
RandomEvent ( EventType type, Focus focus, int airlineSafety, int moneyEffect, string id, int frequency, System.DateTime stat, System.DateTime end, string name = "", string message = "", bool critical = false, int custHappiness, int aircraftDamage, int airlineSecurity, int empHappiness, double paxDemand = 1, double cargoDemand = 1, int length = 1 ) : System
RemoveEvent ( Airline airline, RandomEvent rEvent ) : void

Private Methods

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

Method Details

AddEvent() public method

public AddEvent ( Airline airline, RandomEvent rEvent ) : void
airline TheAirline.Models.Airlines.Airline
rEvent RandomEvent
return void

CheckExpired() public static method

public static CheckExpired ( ) : void
return void

ExecuteEvents() public method

public ExecuteEvents ( Airline airline, System.DateTime time ) : void
airline TheAirline.Models.Airlines.Airline
time System.DateTime
return void

GetObjectData() public method

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

RandomEvent() public method

public RandomEvent ( EventType type, Focus focus, int airlineSafety, int moneyEffect, string id, int frequency, System.DateTime stat, System.DateTime end, string name = "", string message = "", bool critical = false, int custHappiness, int aircraftDamage, int airlineSecurity, int empHappiness, double paxDemand = 1, double cargoDemand = 1, int length = 1 ) : System
type EventType
focus Focus
airlineSafety int
moneyEffect int
id string
frequency int
stat System.DateTime
end System.DateTime
name string
message string
critical bool
custHappiness int
aircraftDamage int
airlineSecurity int
empHappiness int
paxDemand double
cargoDemand double
length int
return System

RemoveEvent() public static method

public static RemoveEvent ( Airline airline, RandomEvent rEvent ) : void
airline TheAirline.Models.Airlines.Airline
rEvent RandomEvent
return void