Class: RPG::Event::Page

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

Overview

Data class for the event page.

Defined Under Namespace

Classes: Condition, Graphic

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePage


31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# File 'lib/rpg/event.rb', line 31

def initialize
  @condition = RPG::Event::Page::Condition.new
  @graphic = RPG::Event::Page::Graphic.new
  @move_type = 0
  @move_speed = 3
  @move_frequency = 3
  @move_route = RPG::MoveRoute.new
  @walk_anime = true
  @step_anime = false
  @direction_fix = false
  @through = false
  @always_on_top = false
  @trigger = 0
  @list = [RPG::EventCommand.new]
end

Instance Attribute Details

#always_on_topObject

Truth value of the [Always On Top] option.


97
98
99
# File 'lib/rpg/event.rb', line 97

def always_on_top
  @always_on_top
end

#conditionRPG::Event::Page::Condition

The event condition Condition.


49
50
51
# File 'lib/rpg/event.rb', line 49

def condition
  @condition
end

#direction_fixObject

Truth value of the [Fixed Direction] option.


91
92
93
# File 'lib/rpg/event.rb', line 91

def direction_fix
  @direction_fix
end

#graphicRPG::Event::Page::Graphic

The event graphic Graphic.


53
54
55
# File 'lib/rpg/event.rb', line 53

def graphic
  @graphic
end

#listArray<RPG::EventCommand>

Program contents. An RPG::EventCommand array.


109
110
111
# File 'lib/rpg/event.rb', line 109

def list
  @list
end

#move_frequencyObject

Movement frequency:

1

lowest

2

lower

3

low

4

high

5

higher

6

highest


78
79
80
# File 'lib/rpg/event.rb', line 78

def move_frequency
  @move_frequency
end

#move_routeObject

Movement route (RPG::MoveRoute). Referenced only when the movement type is set to Custom.


82
83
84
# File 'lib/rpg/event.rb', line 82

def move_route
  @move_route
end

#move_speedObject

Movement speed:

1

slowest

2

slower

3

slow

4

fast

5

faster

6

fastest


69
70
71
# File 'lib/rpg/event.rb', line 69

def move_speed
  @move_speed
end

#move_typeObject

Type of movement:

0

fixed

1

random

2

approach

3

custom


60
61
62
# File 'lib/rpg/event.rb', line 60

def move_type
  @move_type
end

#step_animeObject

Truth value of the [Stopped Animation] option.


88
89
90
# File 'lib/rpg/event.rb', line 88

def step_anime
  @step_anime
end

#throughObject

Truth value of the [Move Through] option.


94
95
96
# File 'lib/rpg/event.rb', line 94

def through
  @through
end

#triggerObject

Event trigger:

0

action button

1

contact with player

2

contact with event

3

autorun

4

parallel processing


105
106
107
# File 'lib/rpg/event.rb', line 105

def trigger
  @trigger
end

#walk_animeObject

Truth value of the [Moving Animation] option.


85
86
87
# File 'lib/rpg/event.rb', line 85

def walk_anime
  @walk_anime
end