AR_Engine_SDK
Functions | Variables
XEAnimControllerBase.lua File Reference
类 XEAnimControllerBase 继承关系图:
Inheritance graph

Functions

function XEAnimControllerBase__AnimClipSection new () end
 
function XEAnimControllerBase AddListener (pListener) end
 
function XEAnimControllerBase RemoveListener (pListener) end
 
function XEAnimControllerBase GetAnimRunMode () end
 
function XEAnimControllerBase SetAnimRunMode (em) end
 
function XEAnimControllerBase GetAnimPlayState () end
 
function XEAnimControllerBase SetAnimPlayState (ps) end
 
function XEAnimControllerBase IsLoop () end
 
function XEAnimControllerBase IsReverse () end
 
function XEAnimControllerBase IsPlaying () end
 
function XEAnimControllerBase IsAutoPlay () end
 
function XEAnimControllerBase SetAutoPlay (bAuto) end
 
function XEAnimControllerBase GetPlayRate () end
 
function XEAnimControllerBase IsAnimRunMode () end
 
function XEAnimControllerBase GetCurTime () end
 
function XEAnimControllerBase GetAnimListener () end
 
function XEAnimControllerBase AddAnimClipSection () end
 
function XEAnimControllerBase RemoveAnimClipSection (szClipName) end
 
function XEAnimControllerBase FindAnimClipSectionByName (szClipName, bIgnoreActive) end
 
function XEAnimControllerBase FindAnimClipSectionByTimestamp (nMicoTimeStamp, bIgnoreActive) end
 
function XEAnimControllerBase NavigateToAnimClipSectionHead (szClipName) end
 
function XEAnimControllerBase NavigateToAnimClipSectionTail (szClipName) end
 
function XEAnimControllerBase Play () end
 
function XEAnimControllerBase PlayClipSection (szClipName, nLoopNum) end
 
function XEAnimControllerBase GetPlayClipSection () end
 
function XEAnimControllerBase Resume () end
 
function XEAnimControllerBase Stop () end
 
function XEAnimControllerBase Pause () end
 
function XEAnimControllerBase SetLoop (bLoop) end
 
function XEAnimControllerBase SetReverse (bReverse) end
 
function XEAnimControllerBase SetPlayRate (fRate) end
 
function XEAnimControllerBase GetTimeLength () end
 
function XEAnimControllerBase SetTime (nTime) end
 

Variables

 XEAnimControllerBase = {}
 
XEAnimControllerBase PS_UNKNOWN = 0
 
XEAnimControllerBase PS_PLAY = 0
 
XEAnimControllerBase PS_PAUSE = 0
 
XEAnimControllerBase PS_STOP = 0
 
XEAnimControllerBase AM_RUN = 0
 
XEAnimControllerBase AM_EDIT = 0
 
XEAnimControllerBase AM_RUN_CLIP_SECTION = 0
 
 XEAnimControllerBase__AnimClipSection = {}
 
XEAnimControllerBase AnimClipSection = XEAnimControllerBase__AnimClipSection
 
XEAnimControllerBase__AnimClipSection nSectionStart = 0
 @type number More...
 
XEAnimControllerBase__AnimClipSection nSectionEnd = 0
 @type number More...
 
XEAnimControllerBase__AnimClipSection nLoopNum = 0
 @type number <= 0 means infinite More...
 
XEAnimControllerBase__AnimClipSection nCurPlayLoopCount = 0
 @type number current loop-playing count More...
 
XEAnimControllerBase__AnimClipSection bActive = false
 @type boolean indicate the active status More...
 
XEAnimControllerBase__AnimClipSection strClipName = ''
 @type string More...
 

Function Documentation

◆ AddAnimClipSection()

function XEAnimControllerBase AddAnimClipSection ( )

添加一个空白动画剪辑段,请使用返回结构进行设置

Returns
XEAnimControllerBase__AnimClipSection

◆ AddListener()

function XEAnimControllerBase AddListener ( pListener  )

添加监听者

Parameters
pListenerXEAnimControllerBase::Listener
Returns
boolean

◆ FindAnimClipSectionByName()

function XEAnimControllerBase FindAnimClipSectionByName ( szClipName  ,
bIgnoreActive   
)

查找一个动画剪辑段,根据名称, bIgnoreActive是否忽略剪辑的激活状态

Parameters
szClipNamestring
bIgnoreActiveboolean
Returns
XEAnimControllerBase__AnimClipSection

◆ FindAnimClipSectionByTimestamp()

function XEAnimControllerBase FindAnimClipSectionByTimestamp ( nMicoTimeStamp  ,
bIgnoreActive   
)

查找一个动画剪辑段,根据时刻, bIgnoreActive是否忽略剪辑的激活状态,in micro seconds.

Parameters
nMicoTimeStampnumber
bIgnoreActiveboolean
Returns
XEAnimControllerBase__AnimClipSection

◆ GetAnimListener()

function XEAnimControllerBase GetAnimListener ( )

获取当前所有监听者数组

Returns
Listener[]

◆ GetAnimPlayState()

function XEAnimControllerBase GetAnimPlayState ( )

获取动画播放控制状态

Returns
number

◆ GetAnimRunMode()

function XEAnimControllerBase GetAnimRunMode ( )

获取动画状态

Returns
number

◆ GetCurTime()

function XEAnimControllerBase GetCurTime ( )

获取当前时间

Returns
number

◆ GetPlayClipSection()

function XEAnimControllerBase GetPlayClipSection ( )

获取当前设定的播放动画段

Returns
XEAnimControllerBase__AnimClipSection

◆ GetPlayRate()

function XEAnimControllerBase GetPlayRate ( )

获取动画播放速率

Returns
number

◆ GetTimeLength()

function XEAnimControllerBase GetTimeLength ( )

计算动画控制器的运行时结束时间

Returns
number

◆ IsAnimRunMode()

function XEAnimControllerBase IsAnimRunMode ( )

判断动画是否是运行状态

Returns
boolean

◆ IsAutoPlay()

function XEAnimControllerBase IsAutoPlay ( )

判断是否是自动播放状态

Returns
boolean

◆ IsLoop()

function XEAnimControllerBase IsLoop ( )

判断是否是循环播放状态

Returns
boolean

◆ IsPlaying()

function XEAnimControllerBase IsPlaying ( )

判断是否是正在播放状态

Returns
boolean

◆ IsReverse()

function XEAnimControllerBase IsReverse ( )

判断是否是反向播放状态

Returns
boolean

◆ NavigateToAnimClipSectionHead()

function XEAnimControllerBase NavigateToAnimClipSectionHead ( szClipName  )

将播放时刻指针移动到指定剪辑段的头部

Parameters
szClipNamestring
Returns
boolean

◆ NavigateToAnimClipSectionTail()

function XEAnimControllerBase NavigateToAnimClipSectionTail ( szClipName  )

将播放时刻指针移动到指定剪辑段的尾部

Parameters
szClipNamestring
Returns
boolean

◆ new()

XEAnimControllerBase_AnimClipSection_new00

Returns
XEAnimControllerBase__AnimClipSection

XEAnimControllerBase_new00

Returns
XEAnimControllerBase

◆ Pause()

function XEAnimControllerBase Pause ( )

暂停播放

Returns
void

◆ Play()

function XEAnimControllerBase Play ( )

从头播放, 并且设置为非动画剪辑段播放模式

Returns
void

◆ PlayClipSection()

function XEAnimControllerBase PlayClipSection ( szClipName  ,
nLoopNum   
)

指明要特定播放的剪辑动画段, 使动画控制器只在该剪辑段内播放。如果nLoopNum <=0,则该动画段无限循环

Parameters
szClipNamestring
nLoopNumnumber
Returns
boolean

◆ RemoveAnimClipSection()

function XEAnimControllerBase RemoveAnimClipSection ( szClipName  )

删除动画剪辑段, 如果szClipName为空,则删除所有

Parameters
szClipNamestring
Returns
boolean

◆ RemoveListener()

function XEAnimControllerBase RemoveListener ( pListener  )

移除监听者

Parameters
pListenerXEAnimControllerBase::Listener
Returns
boolean

◆ Resume()

function XEAnimControllerBase Resume ( )

恢复播放

Returns
void

◆ SetAnimPlayState()

function XEAnimControllerBase SetAnimPlayState ( ps  )

设置动画播放控制状态

Parameters
psnumber
Returns
void

◆ SetAnimRunMode()

function XEAnimControllerBase SetAnimRunMode ( em  )

设置动画状态

Parameters
emnumber
Returns
void

◆ SetAutoPlay()

function XEAnimControllerBase SetAutoPlay ( bAuto  )

设置动画自动播放状态

Parameters
bAutoboolean
Returns
void

◆ SetLoop()

function XEAnimControllerBase SetLoop ( bLoop  )

设置播放循环状态播放

Parameters
bLoopboolean
Returns
void

◆ SetPlayRate()

function XEAnimControllerBase SetPlayRate ( fRate  )

设置播放速率

Parameters
fRatenumber
Returns
void

◆ SetReverse()

function XEAnimControllerBase SetReverse ( bReverse  )

设置播放反向状态

Parameters
bReverseboolean
Returns
void

◆ SetTime()

function XEAnimControllerBase SetTime ( nTime  )

定位播放器时刻, 单位为微秒

Parameters
nTimenumber
Returns
void

◆ Stop()

function XEAnimControllerBase Stop ( )

停止播放

Returns
void

Variable Documentation

◆ AM_EDIT

XEAnimControllerBase AM_EDIT = 0

◆ AM_RUN

◆ AM_RUN_CLIP_SECTION

XEAnimControllerBase AM_RUN_CLIP_SECTION = 0

◆ AnimClipSection

◆ bActive

@type boolean indicate the active status

◆ nCurPlayLoopCount

@type number current loop-playing count

◆ nLoopNum

@type number <= 0 means infinite

◆ nSectionEnd

@type number

◆ nSectionStart

@type number

◆ PS_PAUSE

XEAnimControllerBase PS_PAUSE = 0

◆ PS_PLAY

XEAnimControllerBase PS_PLAY = 0

◆ PS_STOP

XEAnimControllerBase PS_STOP = 0

◆ PS_UNKNOWN

XEAnimControllerBase PS_UNKNOWN = 0

◆ strClipName

@type string

◆ XEAnimControllerBase

◆ XEAnimControllerBase__AnimClipSection