Class: RPG::EventCommand
- Inherits:
-
Object
- Object
- RPG::EventCommand
- Defined in:
- lib/rpg/event_command.rb
Overview
Data class for the Event command.
Instance Attribute Summary collapse
-
#code ⇒ Object
The event code.
-
#indent ⇒ Object
The event code.
-
#parameters ⇒ Object
Array containing the Move command arguments.
Instance Method Summary collapse
-
#initialize(code = 0, indent = 0, parameters = []) ⇒ EventCommand
constructor
A new instance of EventCommand.
Constructor Details
#initialize(code = 0, indent = 0, parameters = []) ⇒ EventCommand
Returns a new instance of EventCommand.
4 5 6 7 8 |
# File 'lib/rpg/event_command.rb', line 4 def initialize(code = 0, indent = 0, parameters = []) @code = code @indent = indent @parameters = parameters end |
Instance Attribute Details
#code ⇒ Object
The event code.
11 12 13 |
# File 'lib/rpg/event_command.rb', line 11 def code @code end |
#indent ⇒ Object
The event code.
14 15 16 |
# File 'lib/rpg/event_command.rb', line 14 def indent @indent end |
#parameters ⇒ Object
Array containing the Move command arguments. The contents vary for each command.
18 19 20 |
# File 'lib/rpg/event_command.rb', line 18 def parameters @parameters end |