Class: RPG::MoveCommand
- Inherits:
-
Object
- Object
- RPG::MoveCommand
- Defined in:
- lib/rpg/move_command.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#parameters ⇒ Object
Returns the value of attribute parameters.
Instance Method Summary collapse
-
#initialize(code = 0, parameters = []) ⇒ MoveCommand
constructor
A new instance of MoveCommand.
Constructor Details
#initialize(code = 0, parameters = []) ⇒ MoveCommand
Returns a new instance of MoveCommand.
3 4 5 6 |
# File 'lib/rpg/move_command.rb', line 3 def initialize(code = 0, parameters = []) @code = code @parameters = parameters end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
7 8 9 |
# File 'lib/rpg/move_command.rb', line 7 def code @code end |
#parameters ⇒ Object
Returns the value of attribute parameters.
8 9 10 |
# File 'lib/rpg/move_command.rb', line 8 def parameters @parameters end |