C# Class EssenceShared.AccountState

显示文件 Open project: Insality/essence-of-shadows Class Usage Examples

Public Methods

Method Description
AccountState ( string id, string nickname, GameLayer>.Dictionary locations ) : System
GetUpgradeCost ( AcccountUpgrade upgrade ) : int
PayGold ( int count ) : bool
RecalcStats ( ) : void
Serialize ( ) : string
SetLocationsDict ( GameLayer>.Dictionary locations ) : void
SwitchLocation ( Locations locationTo ) : void
Update ( ) : void

Вызывается классом Player

Upgrade ( AcccountUpgrade upgrade ) : bool

Private Methods

Method Description
GetPlayer ( ) : Player
LevelUp ( ) : void

Method Details

AccountState() public method

public AccountState ( string id, string nickname, GameLayer>.Dictionary locations ) : System
id string
nickname string
locations GameLayer>.Dictionary
return System

GetUpgradeCost() public method

public GetUpgradeCost ( AcccountUpgrade upgrade ) : int
upgrade AcccountUpgrade
return int

PayGold() public method

public PayGold ( int count ) : bool
count int
return bool

RecalcStats() public method

public RecalcStats ( ) : void
return void

Serialize() public method

public Serialize ( ) : string
return string

SetLocationsDict() public method

public SetLocationsDict ( GameLayer>.Dictionary locations ) : void
locations GameLayer>.Dictionary
return void

SwitchLocation() public method

public SwitchLocation ( Locations locationTo ) : void
locationTo Locations
return void

Update() public method

Вызывается классом Player
public Update ( ) : void
return void

Upgrade() public method

public Upgrade ( AcccountUpgrade upgrade ) : bool
upgrade AcccountUpgrade
return bool