Class: RPG::Troop::Page

Inherits:
Object
  • Object
show all
Extended by:
RgssDb::JsonableConstructor
Includes:
RgssDb::Jsonable
Defined in:
lib/rgss_db/model/rpg_maker_data/vx/rpg/troop_page.rb,
lib/rgss_db/model/rpg_maker_data/xp/rpg/troop_page.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/troop_page.rb,
lib/rgss_db/model/rpg_maker_data/vx/rpg/troop_page_condition.rb,
lib/rgss_db/model/rpg_maker_data/xp/rpg/troop_page_condition.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/troop_page_condition.rb

Overview

The data class for battle events (pages).

Defined Under Namespace

Classes: Condition

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from RgssDb::JsonableConstructor

json_create, json_new

Methods included from RgssDb::Jsonable

#as_json, #to_json

Constructor Details

#initializePage

Returns a new instance of Page.



12
13
14
15
16
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/troop_page.rb', line 12

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

Instance Attribute Details

#conditionObject

Returns the value of attribute condition.



18
19
20
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/troop_page.rb', line 18

def condition
  @condition
end

#listObject

Returns the value of attribute list.



18
19
20
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/troop_page.rb', line 18

def list
  @list
end

#spanObject

Returns the value of attribute span.



18
19
20
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/troop_page.rb', line 18

def span
  @span
end