Game_Followers
Kind: global class
- Game_Followers
- new Game_Followers()
- .initialize()
- .isVisible() ⇒
boolean
- .show()
- .hide()
- .follower(index) ⇒
Game_Follower
- .forEach(callback, thisObject)
- .reverseEach(callback, thisObject)
- .refresh()
- .update()
- .updateMove()
- .jumpAll()
- .synchronize(x, y, d)
- .gather()
- .areGathering() ⇒
boolean
- .visibleFollowers() ⇒
Array
- .areMoving() ⇒
boolean
- .areGathered() ⇒
boolean
- .isSomeoneCollided(x, y) ⇒
boolean
new Game_Followers()
游戏跟随者们类,管理所有跟随者的集合
Game followers class that manages the collection of all followers
Game_Followers.initialize()
初始化跟随者们
Initialize followers
Kind: static method of Game_Followers
Game_Followers.isVisible() ⇒ boolean
检查是否可见
Check if visible
Kind: static method of Game_Followers
Returns: boolean
- 是否可见 / Whether visible
Game_Followers.show()
显示跟随者们
Show followers
Kind: static method of Game_Followers
Game_Followers.hide()
隐藏跟随者们
Hide followers
Kind: static method of Game_Followers
Game_Followers.follower(index) ⇒ Game_Follower
获取跟随者
Get follower
Kind: static method of Game_Followers
Returns: Game_Follower
- 跟随者对象 / Follower object
Param | Type | Description |
---|---|---|
index | number | 索引 / Index |
Game_Followers.forEach(callback, thisObject)
遍历每个跟随者
For each follower
Kind: static method of Game_Followers
Param | Type | Description |
---|---|---|
callback | function | 回调函数 / Callback function |
thisObject | object | this 对象 / This object |
Game_Followers.reverseEach(callback, thisObject)
翻转遍历每个跟随者
Reverse iterate each follower
Kind: static method of Game_Followers
Param | Type | Description |
---|---|---|
callback | function | 回调函数 / Callback function |
thisObject | object | this 对象 / This object |
Game_Followers.refresh()
刷新所有跟随者
Refresh all followers
Kind: static method of Game_Followers
Game_Followers.update()
更新跟随者们
Update followers
Kind: static method of Game_Followers
Game_Followers.updateMove()
更新移动
Update move
Kind: static method of Game_Followers
Game_Followers.jumpAll()
所有跟随者跳跃
All followers jump
Kind: static method of Game_Followers
Game_Followers.synchronize(x, y, d)
同步所有跟随者位置
Synchronize all followers position
Kind: static method of Game_Followers
Param | Type | Description |
---|---|---|
x | number | X 坐标 / X coordinate |
y | number | Y 坐标 / Y coordinate |
d | number | 方向 / Direction |
Game_Followers.gather()
集合跟随者们
Gather followers
Kind: static method of Game_Followers
Game_Followers.areGathering() ⇒ boolean
检查是否正在集合
Check if gathering
Kind: static method of Game_Followers
Returns: boolean
- 是否集合中 / Whether gathering
Game_Followers.visibleFollowers() ⇒ Array
获取可见的跟随者
Get visible followers
Kind: static method of Game_Followers
Returns: Array
- 可见跟随者数组 / Array of visible followers
Game_Followers.areMoving() ⇒ boolean
检查是否有跟随者在移动
Check if any followers are moving
Kind: static method of Game_Followers
Returns: boolean
- 是否移动中 / Whether moving
Game_Followers.areGathered() ⇒ boolean
检查是否已集合
Check if gathered
Kind: static method of Game_Followers
Returns: boolean
- 是否已集合 / Whether gathered
Game_Followers.isSomeoneCollided(x, y) ⇒ boolean
检查是否有跟随者在指定位置
Check if any follower is at specified position
Kind: static method of Game_Followers
Returns: boolean
- 是否有人在此位置 / Whether someone is at this position
Param | Type | Description |
---|---|---|
x | number | X 坐标 / X coordinate |
y | number | Y 坐标 / Y coordinate |