C# Class HelloWorld.GreatCivilization.GreatCivilizationRules

Inheritance: GameRules
Afficher le fichier Open project: Ivony/HelloWorld Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
GetActions ( ) : ActionDescriptor[]
GreatCivilizationRules ( IJsonDataResolver dataResolver, ITypeResolver typeResolver ) : System

Method Details

CreateConstraint() public méthode

public CreateConstraint ( Newtonsoft.Json.Linq.JObject data ) : ActionConstraint
data Newtonsoft.Json.Linq.JObject
Résultat ActionConstraint

CreateInstance() public static méthode

public static CreateInstance ( ITypeResolver typeResolver ) : GreatCivilizationRules
typeResolver ITypeResolver
Résultat GreatCivilizationRules

CreatePlace() public méthode

public CreatePlace ( System.Coordinate coordinate ) : Place
coordinate System.Coordinate
Résultat Place

Initialize() public méthode

public Initialize ( ) : void
Résultat void

InitializePlayer() public méthode

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