Constructor
# new PoolManager(owner, version, x, y)
指定された設定でインスタンスを生成する.
Parameters:
| Name | Type | Description |
|---|---|---|
owner |
stdgam.Scene
|
このオブジェクトを使用するシーン |
version |
number
|
Poolに渡す引数 |
x |
number
|
配置する位置のx座標 |
y |
number
|
配置する位置のy座標 |
Properties:
| Name | Type | Description |
|---|---|---|
x |
number
|
配置する位置のx座標 |
y |
number
|
配置する位置のy座標 |
showOnlyCard |
boolean
|
trueならカードだけを表示する |
active |
boolean
|
(stdgam.Sceneの意味で) このオブジェクトが有効か |
Methods
# consumeMP(playerMP)
チャージMPをplayerMPに加算した値を返す. このとき同時にチャージMPを0にする.
Parameters:
| Name | Type | Description |
|---|---|---|
playerMP |
number
|
プレイヤーのMP |
playerMPにチャージMPを加算した値
# draw(GE, ctx)
現在の状態を描画する.
Parameters:
| Name | Type | Description |
|---|---|---|
GE |
stdgam.GameEngine
|
この処理に用いるGameEngine |
ctx |
CanvasRenderingContext2D
|
描画に用いるコンテクスト |
# generator invokeSkills(GE)
スキル発動処理を行うジェネレータを生成する.
Parameters:
| Name | Type | Description |
|---|---|---|
GE |
stdgam.GameEngine
|
この処理に用いるGameEngine |