Class: RPG::Troop::Page

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

Overview

Data class for battle events (pages).

Defined Under Namespace

Classes: Condition

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePage


54
55
56
57
58
# File 'lib/rpg/troop.rb', line 54

def initialize
  @condition = RPG::Troop::Page::Condition.new
  @span = 0
  @list = [RPG::EventCommand.new]
end

Instance Attribute Details

#conditionObject

Condition (Condition).


62
63
64
# File 'lib/rpg/troop.rb', line 62

def condition
  @condition
end

#listObject

Program contents. An EventCommand array.


72
73
74
# File 'lib/rpg/troop.rb', line 72

def list
  @list
end

#spanObject

Span:

0

battle

1

turn

2

moment


68
69
70
# File 'lib/rpg/troop.rb', line 68

def span
  @span
end