C# Class HelloWorld.GreatCivilization.GreatCivilizationRules

Inheritance: GameRules
ファイルを表示 Open project: Ivony/HelloWorld Class Usage Examples

Public Methods

Method Description
CreateConstraint ( Newtonsoft.Json.Linq.JObject data ) : ActionConstraint
CreateInstance ( ITypeResolver typeResolver ) : GreatCivilizationRules
CreatePlace ( System.Coordinate coordinate ) : Place
Initialize ( ) : void
InitializePlayer ( GamePlayer player ) : void

重写初始化玩家对象方法,给玩家初始点放上一个宫殿。

Private Methods

Method Description
GetActions ( ) : ActionDescriptor[]
GreatCivilizationRules ( IJsonDataResolver dataResolver, ITypeResolver typeResolver ) : System

Method Details

CreateConstraint() public method

public CreateConstraint ( Newtonsoft.Json.Linq.JObject data ) : ActionConstraint
data Newtonsoft.Json.Linq.JObject
return ActionConstraint

CreateInstance() public static method

public static CreateInstance ( ITypeResolver typeResolver ) : GreatCivilizationRules
typeResolver ITypeResolver
return GreatCivilizationRules

CreatePlace() public method

public CreatePlace ( System.Coordinate coordinate ) : Place
coordinate System.Coordinate
return Place

Initialize() public method

public Initialize ( ) : void
return void

InitializePlayer() public method

重写初始化玩家对象方法,给玩家初始点放上一个宫殿。
public InitializePlayer ( GamePlayer player ) : void
player GamePlayer
return void