C# Class MoodSwingGame.MSUnitHandler

显示文件 Open project: verngutz/MoodSwing Class Usage Examples

Public Methods

Method 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

Method Description
MSUnitHandler ( ) : System
getGoal ( int index ) : MSMilleniumDevelopmentGoal?
getMobParam ( MSMilleniumDevelopmentGoal mdg ) : MSMobParam

Method Details

AddUnit() public method

public AddUnit ( MSUnit unit ) : void
unit MSUnit
return void

GetInstance() public static method

public static GetInstance ( ) : MSUnitHandler
return MSUnitHandler

Restart() public static method

public static Restart ( ) : MSUnitHandler
return MSUnitHandler

SendVolunteer() public method

public SendVolunteer ( MSMap map, MSUnit unit, MSTower office ) : void
map MSMap
unit MSUnit
office MSTower
return void

SendWorkers() public method

public SendWorkers ( MSMap map, MSChangeableBuilding bldg, int qty ) : void
map MSMap
bldg MSChangeableBuilding
qty int
return void

SetMobEnabled() public method

public SetMobEnabled ( MSMilleniumDevelopmentGoal mdg, bool enabled ) : void
mdg MSMilleniumDevelopmentGoal
enabled bool
return void

TryForBaby() public method

public TryForBaby ( MSMap map ) : void
map MSMap
return void

Update() public method

public Update ( MSMap map ) : void
map MSMap
return void

VolunteerCitizen() public method

public VolunteerCitizen ( MSMap map ) : void
map MSMap
return void

load() public method

public load ( StreamReader sr, MSMap map ) : void
sr System.IO.StreamReader
map MSMap
return void

toString() public method

public toString ( ) : string
return string