Class: Miyako::InitiativeYuki::CommandEX

Inherits:
Struct
  • Object
show all
Defined in:
lib/Miyako/API/i_yuki.rb

Overview

コマンド構造体

body

コマンドの名称(移動する、調べるなど、アイコンなどの画像も可)

body_selected

選択時コマンドの名称(移動する、調べるなど、アイコンなどの画像も可)(省略時は、bodyと同一)

condition

表示条件(ブロック)。評価の結果、trueのときのみ表示

result

選択結果(移動先シーンクラス名、シナリオ(メソッド)名他のオブジェクト)

end_select_proc

この選択肢を選択したときに優先的に処理するブロック。

body_disable

選択不可時コマンドの名称(移動する、調べるなど、アイコンなどの画像も可)(省略時は、bodyと同一)

ブロックは1つの引数を取る(コマンド選択テキストボックス))。デフォルトはnil

enabe

コマンド選択の時はtrue、選択不可の時はfalseを設定

Instance Attribute Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



135
136
137
# File 'lib/Miyako/API/i_yuki.rb', line 135

def body
  @body
end

#body_disableObject

Returns the value of attribute body_disable

Returns:

  • (Object)

    the current value of body_disable



135
136
137
# File 'lib/Miyako/API/i_yuki.rb', line 135

def body_disable
  @body_disable
end

#body_selectedObject

Returns the value of attribute body_selected

Returns:

  • (Object)

    the current value of body_selected



135
136
137
# File 'lib/Miyako/API/i_yuki.rb', line 135

def body_selected
  @body_selected
end

#conditionObject

Returns the value of attribute condition

Returns:

  • (Object)

    the current value of condition



135
136
137
# File 'lib/Miyako/API/i_yuki.rb', line 135

def condition
  @condition
end

#enableObject

Returns the value of attribute enable

Returns:

  • (Object)

    the current value of enable



135
136
137
# File 'lib/Miyako/API/i_yuki.rb', line 135

def enable
  @enable
end

#end_select_procObject

Returns the value of attribute end_select_proc

Returns:

  • (Object)

    the current value of end_select_proc



135
136
137
# File 'lib/Miyako/API/i_yuki.rb', line 135

def end_select_proc
  @end_select_proc
end

#resultObject

Returns the value of attribute result

Returns:

  • (Object)

    the current value of result



135
136
137
# File 'lib/Miyako/API/i_yuki.rb', line 135

def result
  @result
end