Sprite_Battler()
精灵_战斗者
Sprite_Actor 和 Sprite_Enemy 的父类。
Sprite_Battler
The superclass of Sprite_Actor and Sprite_Enemy.
Kind: global function
- Sprite_Battler()
- .initialize(battler)
- .initMembers()
- .setBattler(battler)
- .setHome(x, y)
- .update()
- .updateVisibility()
- .updateMain()
- .updateBitmap()
- .updateFrame()
- .updateMove()
- .updatePosition()
- .updateAnimation()
- .updateDamagePopup()
- .updateSelectionEffect()
- .setupAnimation()
- .setupDamagePopup()
- .damageOffsetX() ⇒
number - .damageOffsetY() ⇒
number - .startMove(x, y, duration)
- .onMoveEnd()
- .isEffecting() ⇒
boolean - .isMoving() ⇒
boolean - .inHomePosition() ⇒
boolean
sprite_Battler.initialize(battler)
初始化
Kind: instance method of Sprite_Battler
| Param | Type | Description |
|---|---|---|
| battler | Game_Battler | 战斗者对象 - Battler object Initialize |
sprite_Battler.initMembers()
初始化成员
Initialize members
Kind: instance method of Sprite_Battler
sprite_Battler.setBattler(battler)
设置战斗者
Kind: instance method of Sprite_Battler
| Param | Type | Description |
|---|---|---|
| battler | Game_Battler | 战斗者对象 - Battler object Set battler |
sprite_Battler.setHome(x, y)
设置家
以该位置为原点来设置战斗者的偏移位置。
Set home
Sets the battler's offset position with this position as the origin.
Kind: instance method of Sprite_Battler
| Param | Type | Description |
|---|---|---|
| x | number | X 坐标 - X coordinate |
| y | number | Y 坐标 - Y coordinate |
sprite_Battler.update()
更新
Update
Kind: instance method of Sprite_Battler
sprite_Battler.updateVisibility()
更新可见性
Update visibility
Kind: instance method of Sprite_Battler
sprite_Battler.updateMain()
更新主函数
Update main
Kind: instance method of Sprite_Battler
sprite_Battler.updateBitmap()
更新位图
Update bitmap
Kind: instance method of Sprite_Battler
sprite_Battler.updateFrame()
更新帧
Update frame
Kind: instance method of Sprite_Battler
sprite_Battler.updateMove()
更新移动
Update move
Kind: instance method of Sprite_Battler
sprite_Battler.updatePosition()
更新位置
Update position
Kind: instance method of Sprite_Battler
sprite_Battler.updateAnimation()
更新动画
Update animation
Kind: instance method of Sprite_Battler
sprite_Battler.updateDamagePopup()
更新伤害弹出层
Update damage popup
Kind: instance method of Sprite_Battler
sprite_Battler.updateSelectionEffect()
更新选择效果
Update selection effect
Kind: instance method of Sprite_Battler
sprite_Battler.setupAnimation()
设置动画
Setup animation
Kind: instance method of Sprite_Battler
sprite_Battler.setupDamagePopup()
设置伤害弹出层
Setup damage popup
Kind: instance method of Sprite_Battler
sprite_Battler.damageOffsetX() ⇒ number
伤害的偏移坐标 X
Kind: instance method of Sprite_Battler
Returns: number - 伤害偏移 X 坐标 - Damage offset X coordinate
Damage offset X
sprite_Battler.damageOffsetY() ⇒ number
伤害的偏移坐标 Y
Kind: instance method of Sprite_Battler
Returns: number - 伤害偏移 Y 坐标 - Damage offset Y coordinate
Damage offset Y
sprite_Battler.startMove(x, y, duration)
开始移动
Kind: instance method of Sprite_Battler
| Param | Type | Description |
|---|---|---|
| x | number | 目标 X 坐标 - Target X coordinate |
| y | number | 目标 Y 坐标 - Target Y coordinate |
| duration | number | 持续时间 - Duration Start move |
sprite_Battler.onMoveEnd()
当移动结束
When move end
Kind: instance method of Sprite_Battler
sprite_Battler.isEffecting() ⇒ boolean
是否效果中
Kind: instance method of Sprite_Battler
Returns: boolean - 是否效果中 - Whether is effecting
Is effecting
sprite_Battler.isMoving() ⇒ boolean
是否移动中
Kind: instance method of Sprite_Battler
Returns: boolean - 是否移动中 - Whether is moving
Is moving
sprite_Battler.inHomePosition() ⇒ boolean
是否在家的坐标中
Kind: instance method of Sprite_Battler
Returns: boolean - 是否在家坐标中 - Whether in home position
In home position