Class: RPG::Troop
- Inherits:
-
Object
- Object
- RPG::Troop
- Defined in:
- lib/rgss3/rpg.rb
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.
Constructor Details
#initialize ⇒ Troop
Returns a new instance of Troop.
745 746 747 748 749 750 |
# File 'lib/rgss3/rpg.rb', line 745 def initialize @id = 0 @name = '' @members = [] @pages = [RPG::Troop::Page.new] end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
751 752 753 |
# File 'lib/rgss3/rpg.rb', line 751 def id @id end |
#members ⇒ Object
Returns the value of attribute members.
753 754 755 |
# File 'lib/rgss3/rpg.rb', line 753 def members @members end |
#name ⇒ Object
Returns the value of attribute name.
752 753 754 |
# File 'lib/rgss3/rpg.rb', line 752 def name @name end |
#pages ⇒ Object
Returns the value of attribute pages.
754 755 756 |
# File 'lib/rgss3/rpg.rb', line 754 def pages @pages end |