Class: RPG::Event::Page
- Inherits:
-
Object
- Object
- RPG::Event::Page
- Defined in:
- lib/rpg/event.rb
Overview
Data class for the event page.
Defined Under Namespace
Instance Attribute Summary collapse
-
#always_on_top ⇒ Object
Truth value of the [Always On Top] option.
-
#condition ⇒ RPG::Event::Page::Condition
The event condition Condition.
-
#direction_fix ⇒ Object
Truth value of the [Fixed Direction] option.
-
#graphic ⇒ RPG::Event::Page::Graphic
The event graphic Graphic.
-
#list ⇒ Array<RPG::EventCommand>
Program contents.
-
#move_frequency ⇒ Object
- Movement frequency: 1
- lowest 2
- lower 3
- low 4
- high 5
- higher 6
-
highest.
-
#move_route ⇒ Object
Movement route (RPG::MoveRoute).
-
#move_speed ⇒ Object
- Movement speed: 1
- slowest 2
- slower 3
- slow 4
- fast 5
- faster 6
-
fastest.
-
#move_type ⇒ Object
- Type of movement: 0
- fixed 1
- random 2
- approach 3
-
custom.
-
#step_anime ⇒ Object
Truth value of the [Stopped Animation] option.
-
#through ⇒ Object
Truth value of the [Move Through] option.
-
#trigger ⇒ Object
- Event trigger: 0
- action button 1
- contact with player 2
- contact with event 3
- autorun 4
-
parallel processing.
-
#walk_anime ⇒ Object
Truth value of the [Moving Animation] option.
Instance Method Summary collapse
-
#initialize ⇒ Page
constructor
A new instance of Page.
Constructor Details
#initialize ⇒ Page
Returns a new instance of Page.
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_top ⇒ Object
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 |
#condition ⇒ RPG::Event::Page::Condition
The event condition Condition.
49 50 51 |
# File 'lib/rpg/event.rb', line 49 def condition @condition end |
#direction_fix ⇒ Object
Truth value of the [Fixed Direction] option.
91 92 93 |
# File 'lib/rpg/event.rb', line 91 def direction_fix @direction_fix end |
#graphic ⇒ RPG::Event::Page::Graphic
The event graphic Graphic.
53 54 55 |
# File 'lib/rpg/event.rb', line 53 def graphic @graphic end |
#list ⇒ Array<RPG::EventCommand>
Program contents. An RPG::EventCommand array.
109 110 111 |
# File 'lib/rpg/event.rb', line 109 def list @list end |
#move_frequency ⇒ Object
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_route ⇒ Object
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_speed ⇒ Object
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_type ⇒ Object
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_anime ⇒ Object
Truth value of the [Stopped Animation] option.
88 89 90 |
# File 'lib/rpg/event.rb', line 88 def step_anime @step_anime end |
#through ⇒ Object
Truth value of the [Move Through] option.
94 95 96 |
# File 'lib/rpg/event.rb', line 94 def through @through end |
#trigger ⇒ Object
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_anime ⇒ Object
Truth value of the [Moving Animation] option.
85 86 87 |
# File 'lib/rpg/event.rb', line 85 def walk_anime @walk_anime end |