Class: RPG::EventCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/rpg/event_command.rb

Overview

Data class for the Event command.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject

The event code.



11
12
13
# File 'lib/rpg/event_command.rb', line 11

def code
  @code
end

#indentObject

The event code.



14
15
16
# File 'lib/rpg/event_command.rb', line 14

def indent
  @indent
end

#parametersObject

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