C# Class HelloWorld.ActionDescriptor

Inheritance: ActionDescriptorBase
Show file Open project: Ivony/HelloWorld Class Usage Examples

Public Methods

Method Description
CanStartAt ( GamePlayer player, PlaceBase place ) : bool

确认是否可以在指定地块开始这个活动

GetInfo ( ) : object
TryComplete ( PlaceActing acting, System.DateTime now ) : bool

检查活动是否已经完成,若已经完成则获取相应的收益

TryStartAt ( GamePlayer player, PlaceBase place ) : PlaceActing

尝试在指定地块开始这个活动

Protected Methods

Method Description
DefaultDescription ( ) : string
DefaultName ( ) : string
Initialize ( GameRulesBase rules, Newtonsoft.Json.Linq.JObject data ) : void
TryStartAt ( GamePlayer player, HelloWorld.Place place ) : PlaceActing

尝试在指定地块开始这个活动

Method Details

CanStartAt() public final method

确认是否可以在指定地块开始这个活动
public final CanStartAt ( GamePlayer player, PlaceBase place ) : bool
player GamePlayer
place PlaceBase 地块对象
return bool

DefaultDescription() protected method

protected DefaultDescription ( ) : string
return string

DefaultName() protected method

protected DefaultName ( ) : string
return string

GetInfo() public method

public GetInfo ( ) : object
return object

Initialize() protected method

protected Initialize ( GameRulesBase rules, Newtonsoft.Json.Linq.JObject data ) : void
rules GameRulesBase
data Newtonsoft.Json.Linq.JObject
return void

TryComplete() public method

检查活动是否已经完成,若已经完成则获取相应的收益
public TryComplete ( PlaceActing acting, System.DateTime now ) : bool
acting PlaceActing 正在进行的活动
now System.DateTime
return bool

TryStartAt() protected method

尝试在指定地块开始这个活动
protected TryStartAt ( GamePlayer player, HelloWorld.Place place ) : PlaceActing
player GamePlayer
place HelloWorld.Place 要开始活动的地方
return PlaceActing

TryStartAt() public method

尝试在指定地块开始这个活动
public TryStartAt ( GamePlayer player, PlaceBase place ) : PlaceActing
player GamePlayer
place PlaceBase 要开始活动的地方
return PlaceActing