Class: RPG::CommonEvent

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCommonEvent

Returns a new instance of CommonEvent


6
7
8
9
10
11
12
# File 'lib/rpg/common_event.rb', line 6

def initialize
  @id = 0
  @name = ""
  @trigger = 0
  @switch_id = 1
  @list = [RPG::EventCommand.new]
end

Instance Attribute Details

#idObject

The event ID.


15
16
17
# File 'lib/rpg/common_event.rb', line 15

def id
  @id
end

#listArray<RPG::EventCommand>

List of event commands. An EventCommand array.

Returns:


31
32
33
# File 'lib/rpg/common_event.rb', line 31

def list
  @list
end

#nameObject

The event name.


18
19
20
# File 'lib/rpg/common_event.rb', line 18

def name
  @name
end

#switch_idObject

The condition switch ID.


27
28
29
# File 'lib/rpg/common_event.rb', line 27

def switch_id
  @switch_id
end

#triggerObject

The event trigger:

0

none

1

autorun

2

parallel


24
25
26
# File 'lib/rpg/common_event.rb', line 24

def trigger
  @trigger
end