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