Class: RPG::Troop

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

Defined Under Namespace

Classes: Member, Page

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTroop

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

#idObject

Returns the value of attribute id.



751
752
753
# File 'lib/rgss3/rpg.rb', line 751

def id
  @id
end

#membersObject

Returns the value of attribute members.



753
754
755
# File 'lib/rgss3/rpg.rb', line 753

def members
  @members
end

#nameObject

Returns the value of attribute name.



752
753
754
# File 'lib/rgss3/rpg.rb', line 752

def name
  @name
end

#pagesObject

Returns the value of attribute pages.



754
755
756
# File 'lib/rgss3/rpg.rb', line 754

def pages
  @pages
end