Class: PFM::Storage::BattleBox

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(name, content_overload = nil) ⇒ BattleBox

Create a new battle box

Parameters:

  • name (String)

    name of the box

  • content_overload (Array) (defaults to: nil)

    content to force in this object



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

#contentArray<PFM::Pokemon> (readonly)

Content of the storage

Returns:



10
11
12
# File 'scripts/01450 Systems/00200 Storage/00001 PFM_Storage/00003 BattleBox.rb', line 10

def content
  @content
end

#nameString

Name of the storage

Returns:



7
8
9
# File 'scripts/01450 Systems/00200 Storage/00001 PFM_Storage/00003 BattleBox.rb', line 7

def name
  @name
end