Class: RPG::MoveRoute
- Inherits:
-
Object
- Object
- RPG::MoveRoute
- Defined in:
- lib/rpg/move_route.rb
Overview
Data class for the move route (movement route).
Instance Attribute Summary collapse
-
#list ⇒ Array<RPG::MoveCommand>
Program contents.
-
#repeat ⇒ Object
Truth value of the [Repeat Action] option.
-
#skippable ⇒ Object
Truth value of the [Ignore if Can’t Move] option.
Instance Method Summary collapse
-
#initialize ⇒ MoveRoute
constructor
A new instance of MoveRoute.
Constructor Details
#initialize ⇒ MoveRoute
Returns a new instance of MoveRoute.
6 7 8 9 10 |
# File 'lib/rpg/move_route.rb', line 6 def initialize @repeat = true @skippable = false @list = [RPG::MoveCommand.new] end |
Instance Attribute Details
#list ⇒ Array<RPG::MoveCommand>
Program contents. An RPG::MoveCommand array.
20 21 22 |
# File 'lib/rpg/move_route.rb', line 20 def list @list end |
#repeat ⇒ Object
Truth value of the [Repeat Action] option.
13 14 15 |
# File 'lib/rpg/move_route.rb', line 13 def repeat @repeat end |
#skippable ⇒ Object
Truth value of the [Ignore if Can’t Move] option.
16 17 18 |
# File 'lib/rpg/move_route.rb', line 16 def skippable @skippable end |