Global

Members

Array.<number>

# constant ChainMask

各属性に対して割り当てられたコンボ判定用のマスク.

View Source card.js, line 103

Object.<string, string>

# constant CharacterNames

基本属性をキャラクターのフルネームに変換する連想配列.

View Source card.js, line 70

Object.<string, function()>

# constant EnemyAction

敵の特殊攻撃を生成する関数をまとめたもの.

View Source enemy.js, line 65

Object.<string, *>

# constant EnemyData

このゲームに登場する敵のデータを登録する連想配列.

View Source enemy.js, line 141

stdgam.GameEngine

# constant GE

このプログラムで使うGameEngineオブジェクト.

View Source nagibato.js, line 24

Array.<string>

# constant PrimitiveSuits

基本属性を定義するリスト.

View Source card.js, line 45

Object.<string, string>

# constant ShortCharacterNames

基本属性をキャラクターの下の名前に変換する連想配列.

View Source card.js, line 79

Array.<string>

# constant Suits

プログラムで使われている属性を登録するリスト.

View Source card.js, line 51

Object.<string, function()>

# constant T

stdgam.Templatesの略称.

View Source nagibato.js, line 30

Array.<Object.<string, *>>

# constant TutorialInfo

チュートリアルの各項目の情報をまとめた配列.

View Source QB.js, line 592

Methods

# ChainFunc(a, b, c) → {boolean}

MAGICARD BATTLE第1弾のルールに従い, 3枚のカードがコンボの条件を 満たしているか判定する (3枚目のカードがスキルを持つかどうかはチェックしない).

Parameters:
Name Type Description
a Cardlike
b Cardlike
c Cardlike

View Source card.js, line 168

コンボが成立していればtrue, 不成立ならfalse

boolean

# ChainFuncVer2(a, b, c) → {boolean}

MAGICARD BATTLE第2弾のルールに従い, 3枚のカードがコンボの条件を 満たしているか判定する (3枚目のカードがスキルを持つかどうかはチェックしない).

Parameters:
Name Type Description
a Cardlike
b Cardlike
c Cardlike

View Source card.js, line 181

コンボが成立していればtrue, 不成立ならfalse

boolean

# createConfirmatingQB_BeforeBattle(setting) → {QBYesNo}

バトルが選択されたときに喋る内容を生成する.

Parameters:
Name Type Description
setting Objcet.<string, *>

selectSceneの設定データ

View Source QB.js, line 558

生成されたオブジェクト

QBYesNo

# createMeter(v, max, frames) → {stdtask.Meter}

ステータスの等速変化を実現するMeterオブジェクトを作る. あるパラメータがAからBへ変化するとき, モデル内部では一瞬で値がBになるが, GUIではAからBまで一定の時間を掛けて変化する様子を描画したい. この時間変化を表現するために使う.

Parameters:
Name Type Description
v number

初期値

max number

最大値

frames number

変化に要するフレーム数の既定値

View Source model.js, line 24

生成されたMeterオブジェクト

# createOpeningQB(battleOpt) → {QBTalk|QBLecture}

バトルの最初にQBが喋る内容を生成する.

Parameters:
Name Type Description
battleOpt Objcet.<string, *>

バトルの設定データ

View Source QB.js, line 522

生成されたオブジェクト

QBTalk | QBLecture

# createTutorialQB() → {QBYesNo}

チュートリアルが選択されたときに喋る内容を生成する.

View Source QB.js, line 576

生成されたオブジェクト

QBYesNo

# execute(GE)

1フレーム分のタスク処理を実行する.

Parameters:
Name Type Description
GE stdgam.GameEngine

このタスク処理に用いるGameEngine

View Source nagibato.js, line 618

# getCharacterName(suitString) → {string}

指定された属性に対応するカード名を生成する.

Parameters:
Name Type Description
suitString string

属性の値

View Source card.js, line 89

生成されたカード名

string

# getPolysuitMask(indices) → {number}

複合クラスのためのマスクを計算する

Parameters:
Name Type Description
indices Array.<number>

各構成要素のPrimitiveSuitsにおけるインデックス

View Source card.js, line 110

生成されたマスクの値

number

# getPolysuitName(marks) → {string}

複合属性の属性名を生成する

Parameters:
Name Type Description
marks Array.<number>

各構成要素のPrimitiveSuitsにおけるインデックス

View Source card.js, line 58

生成された属性名

string

Type Definitions

Card | PrismaticCard

# Cardlike

Properties:
Name Type Attributes Description
mark number

このカードの属性をSuits内のインデックスで表した値 (マーク数値)

value number

このカードのコスト

skill PlayerSkill_skill <optional>

このカードが持つスキル

cardAtlasID string <optional>

cardlist.jsにおけるこのカードのID

View Source card.js, line 9

Object

# PlayerSkill_skill

Properties:
Name Type Description
caption string

スキル名

desc string

効果の説明

effect GeneratorFunction

引数として受け取ったSkillDealerBaseを使ってスキルの効果を実装する

View Source card.js, line 274

Object

# Sprite

描画処理を行うオブジェクト

Properties:
Name Type Description
draw function

1フレーム分の描画処理を行う

View Source stdgam.js, line 32

Object

# Task

1フレームごとにタスク処理を行うオブジェクト

Properties:
Name Type Description
execute function

1フレーム分のタスク処理を行う

View Source stdgam.js, line 37

Sprite

# Templates_custom

Properties:
Name Type Description
contents Object

paint(GE, ctx, x, y)を持つオブジェクト

x number

描画位置のx座標

y number

描画位置のy座標

alpha number

不透明度

View Source stdgam.js, line 1042

Task

# Templates_fader

Properties:
Name Type Description
fadeTo function

現在値から第1引数で指定した値まで, 第3引数で指定したフレーム数を掛けてthis.alphaの値を等速変化させる

View Source stdgam.js, line 1066

Sprite

# Templates_image

Properties:
Name Type Description
image HTMLImageElement

描画する画像

x number

描画位置のx座標

y number

描画位置のy座標

alpha number

不透明度

View Source stdgam.js, line 1034

Task

# Templates_scheduler

Properties:
Name Type Description
after function

指定時間が経過したとき第2引数で指定したコールバック関数を実行する. ここで, コールバック関数の引数は (GE, self) である (GEはタスク処理に用いるGameEngine, selfはこのオブジェクト自身).

loop function

コールバック関数の実行結果がtrueである限り, afterと同じ処理を繰り返す

View Source stdgam.js, line 1050

Task

# Templates_slider

Properties:
Name Type Description
moveTo function

this.x, this.yを指定した値に変更する

slideTo function

現在位置から第1~第2引数で指定した座標まで, 第3引数で指定したフレーム数を掛けてthis.x, this.yの値を等速変化させる

View Source stdgam.js, line 1060

Sprite

# Templates_text

Properties:
Name Type Description
text string

表示するテキスト

x number

描画位置のx座標

y number

描画位置のy座標

color string

テキストの色

font string

テキストのフォント

alpha number

不透明度

View Source stdgam.js, line 1020

Task

# createPhysicalButton_obj

Properties:
Name Type Description
draw function

1フレーム分の描画処理を行う

execute function

1フレーム分のタスク処理を行う

x number

配置する位置のx座標

y number

配置する位置のy座標

isPressed boolean

このボタンが押されている状態かどうか

active boolean

(stdgam.Sceneの意味で) このオブジェクトが有効か

View Source battle.js, line 322