C# 클래스 EssenceShared.AccountState

파일 보기 프로젝트 열기: Insality/essence-of-shadows 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
GetPlayer ( ) : Player
LevelUp ( ) : void

메소드 상세

AccountState() 공개 메소드

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

GetUpgradeCost() 공개 메소드

public GetUpgradeCost ( AcccountUpgrade upgrade ) : int
upgrade AcccountUpgrade
리턴 int

PayGold() 공개 메소드

public PayGold ( int count ) : bool
count int
리턴 bool

RecalcStats() 공개 메소드

public RecalcStats ( ) : void
리턴 void

Serialize() 공개 메소드

public Serialize ( ) : string
리턴 string

SetLocationsDict() 공개 메소드

public SetLocationsDict ( GameLayer>.Dictionary locations ) : void
locations GameLayer>.Dictionary
리턴 void

SwitchLocation() 공개 메소드

public SwitchLocation ( Locations locationTo ) : void
locationTo Locations
리턴 void

Update() 공개 메소드

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

Upgrade() 공개 메소드

public Upgrade ( AcccountUpgrade upgrade ) : bool
upgrade AcccountUpgrade
리턴 bool