C# Class MoodSwingGame.MSUnitHandler

Afficher le fichier Open project: verngutz/MoodSwing Class Usage Examples

Méthodes publiques

Méthode Description
AddUnit ( MSUnit unit ) : void
GetInstance ( ) : MSUnitHandler
Restart ( ) : MSUnitHandler
SendVolunteer ( MSMap map, MSUnit unit, MSTower office ) : void
SendWorkers ( MSMap map, MSChangeableBuilding bldg, int qty ) : void
SetMobEnabled ( MSMilleniumDevelopmentGoal mdg, bool enabled ) : void
TryForBaby ( MSMap map ) : void
Update ( MSMap map ) : void
VolunteerCitizen ( MSMap map ) : void
load ( StreamReader sr, MSMap map ) : void
toString ( ) : string

Private Methods

Méthode Description
MSUnitHandler ( ) : System
getGoal ( int index ) : MSMilleniumDevelopmentGoal?
getMobParam ( MSMilleniumDevelopmentGoal mdg ) : MSMobParam

Method Details

AddUnit() public méthode

public AddUnit ( MSUnit unit ) : void
unit MSUnit
Résultat void

GetInstance() public static méthode

public static GetInstance ( ) : MSUnitHandler
Résultat MSUnitHandler

Restart() public static méthode

public static Restart ( ) : MSUnitHandler
Résultat MSUnitHandler

SendVolunteer() public méthode

public SendVolunteer ( MSMap map, MSUnit unit, MSTower office ) : void
map MSMap
unit MSUnit
office MSTower
Résultat void

SendWorkers() public méthode

public SendWorkers ( MSMap map, MSChangeableBuilding bldg, int qty ) : void
map MSMap
bldg MSChangeableBuilding
qty int
Résultat void

SetMobEnabled() public méthode

public SetMobEnabled ( MSMilleniumDevelopmentGoal mdg, bool enabled ) : void
mdg MSMilleniumDevelopmentGoal
enabled bool
Résultat void

TryForBaby() public méthode

public TryForBaby ( MSMap map ) : void
map MSMap
Résultat void

Update() public méthode

public Update ( MSMap map ) : void
map MSMap
Résultat void

VolunteerCitizen() public méthode

public VolunteerCitizen ( MSMap map ) : void
map MSMap
Résultat void

load() public méthode

public load ( StreamReader sr, MSMap map ) : void
sr System.IO.StreamReader
map MSMap
Résultat void

toString() public méthode

public toString ( ) : string
Résultat string