Class: PFM::Storage::BattleBox
- Defined in:
- scripts/01450 Systems/00200 Storage/00001 PFM_Storage/00003 BattleBox.rb
Overview
Class Responsive of holding a team that can be used for battles
Instance Attribute Summary collapse
-
#content ⇒ Array<PFM::Pokemon>
readonly
Content of the storage.
-
#name ⇒ String
Name of the storage.
Instance Method Summary collapse
-
#initialize(name, content_overload = nil) ⇒ BattleBox
constructor
Create a new battle box.
Constructor Details
#initialize(name, content_overload = nil) ⇒ BattleBox
Create a new battle box
14 15 16 17 |
# File 'scripts/01450 Systems/00200 Storage/00001 PFM_Storage/00003 BattleBox.rb', line 14 def initialize(name, content_overload = nil) @content = content_overload || Array.new(6) @name = name end |
Instance Attribute Details
#content ⇒ Array<PFM::Pokemon> (readonly)
Content of the storage
10 11 12 |
# File 'scripts/01450 Systems/00200 Storage/00001 PFM_Storage/00003 BattleBox.rb', line 10 def content @content end |
#name ⇒ String
Name of the storage
7 8 9 |
# File 'scripts/01450 Systems/00200 Storage/00001 PFM_Storage/00003 BattleBox.rb', line 7 def name @name end |