Class: RPG::Troop
- Inherits:
-
Object
- Object
- RPG::Troop
- Extended by:
- RgssDb::JsonableConstructor
- Includes:
- RgssDb::Jsonable
- Defined in:
- lib/rgss_db/model/rpg_maker_data/vx/rpg/troop.rb,
lib/rgss_db/model/rpg_maker_data/xp/rpg/troop.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/troop.rb,
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/rpg/troop_member.rb,
lib/rgss_db/model/rpg_maker_data/xp/rpg/troop_member.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/troop_page.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/troop_member.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 enemy troops.
Defined Under Namespace
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#members ⇒ Object
Returns the value of attribute members.
-
#name ⇒ Object
Returns the value of attribute name.
-
#pages ⇒ Object
Returns the value of attribute pages.
Instance Method Summary collapse
-
#initialize ⇒ Troop
constructor
A new instance of Troop.
- #to_s ⇒ Object
Methods included from RgssDb::JsonableConstructor
Methods included from RgssDb::Jsonable
Constructor Details
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
22 23 24 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/troop.rb', line 22 def id @id end |
#members ⇒ Object
Returns the value of attribute members.
22 23 24 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/troop.rb', line 22 def members @members end |
#name ⇒ Object
Returns the value of attribute name.
22 23 24 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/troop.rb', line 22 def name @name end |
#pages ⇒ Object
Returns the value of attribute pages.
22 23 24 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/troop.rb', line 22 def pages @pages end |
Instance Method Details
#to_s ⇒ Object
18 19 20 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/troop.rb', line 18 def to_s @name.to_s end |