Class: RPG::MoveRoute

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

Overview

Data class for the move route (movement route).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMoveRoute

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

#listArray<RPG::MoveCommand>

Program contents. An RPG::MoveCommand array.

Returns:



20
21
22
# File 'lib/rpg/move_route.rb', line 20

def list
  @list
end

#repeatObject

Truth value of the [Repeat Action] option.



13
14
15
# File 'lib/rpg/move_route.rb', line 13

def repeat
  @repeat
end

#skippableObject

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