C# Class HelloWorld.ActionDescriptorBase

一个游戏活动的描述
Inheritance: GameRuleItem
ファイルを表示 Open project: Ivony/HelloWorld Class Usage Examples

Public Methods

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

确认是否可以在指定地块开展活动

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

检查活动是否已经完成

TryStartAt ( GamePlayer player, PlaceBase place ) : PlaceActing

尝试对指定地块进行投入来进行这个活动

Protected Methods

Method Description
ActionDescriptorBase ( ) : System

构建活动描述对象

Method Details

ActionDescriptorBase() protected method

构建活动描述对象
protected ActionDescriptorBase ( ) : System
return System

CanStartAt() public abstract method

确认是否可以在指定地块开展活动
public abstract CanStartAt ( GamePlayer player, PlaceBase place ) : bool
player GamePlayer
place PlaceBase 要开展活动的地块
return bool

TryComplete() public abstract method

检查活动是否已经完成
public abstract TryComplete ( PlaceActing acting, System.DateTime now ) : bool
acting PlaceActing 正在进行的活动对象
now System.DateTime
return bool

TryStartAt() public abstract method

尝试对指定地块进行投入来进行这个活动
public abstract TryStartAt ( GamePlayer player, PlaceBase place ) : PlaceActing
player GamePlayer
place PlaceBase 进行活动的地块
return PlaceActing