Class: RPG::MoveCommand

Inherits:
Object
  • Object
show all
Extended by:
RgssDb::JsonableConstructor
Includes:
RgssDb::Jsonable
Defined in:
lib/rgss_db/model/rpg_maker_data/vx/rpg/move_command.rb,
lib/rgss_db/model/rpg_maker_data/xp/rpg/move_command.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/move_command.rb

Overview

The data class for the Move command.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from RgssDb::JsonableConstructor

json_create, json_new

Methods included from RgssDb::Jsonable

#as_json, #to_json

Constructor Details

#initialize(code = 0, parameters = []) ⇒ MoveCommand

Returns a new instance of MoveCommand.



11
12
13
14
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/move_command.rb', line 11

def initialize(code = 0, parameters = [])
  @code = code
  @parameters = parameters
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



16
17
18
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/move_command.rb', line 16

def code
  @code
end

#parametersObject

Returns the value of attribute parameters.



16
17
18
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/move_command.rb', line 16

def parameters
  @parameters
end