C# Class HelloWorld.ActionConstraint

代表一个活动的限制条件
Mostrar archivo Open project: Ivony/HelloWorld

Public Methods

Method Description
ActionConstraint ( GameRulesBase rules, Newtonsoft.Json.Linq.JObject data ) : System
IsSatisfy ( GamePlayer player, PlaceBase place ) : bool

检查指定地块当前是否满足限制。

IsSatisfy ( GamePlayer player, PlaceBase place, string &errorMessage ) : bool

检查指定地块当前是否满足限制。

ToString ( ) : string

Protected Methods

Method Description
Check ( GamePlayer player, HelloWorld.Place place ) : string

检查指定地块当前是否满足限制。

Check ( GamePlayer player, PlaceBase place ) : string

检查指定地块当前是否满足限制。

Method Details

ActionConstraint() public method

public ActionConstraint ( GameRulesBase rules, Newtonsoft.Json.Linq.JObject data ) : System
rules GameRulesBase
data Newtonsoft.Json.Linq.JObject
return System

Check() protected method

检查指定地块当前是否满足限制。
protected Check ( GamePlayer player, HelloWorld.Place place ) : string
player GamePlayer 当前操作的玩家
place HelloWorld.Place 要检查的地块
return string

Check() protected method

检查指定地块当前是否满足限制。
protected Check ( GamePlayer player, PlaceBase place ) : string
player GamePlayer 当前操作的玩家
place PlaceBase 要检查的地块
return string

IsSatisfy() public method

检查指定地块当前是否满足限制。
public IsSatisfy ( GamePlayer player, PlaceBase place ) : bool
player GamePlayer 当前操作的玩家
place PlaceBase 要检查的地块
return bool

IsSatisfy() public method

检查指定地块当前是否满足限制。
public IsSatisfy ( GamePlayer player, PlaceBase place, string &errorMessage ) : bool
player GamePlayer 当前操作的玩家
place PlaceBase 要检查的地块
errorMessage string 错误信息
return bool

ToString() public method

public ToString ( ) : string
return string