Class: GameData::Trainer
- Extended by:
- DataSource
- Defined in:
- scripts/00800 GameData/00100 Serializable/00400 Trainer.rb
Overview
Trainer data structure
Constant Summary
Constants included from DataSource
Instance Attribute Summary collapse
-
#base_money ⇒ Integer
The value that is multiplied to the last pokemon level to get the money the trainer gives.
-
#battler ⇒ String
The name of the battler in Graphics/Battlers.
-
#internal_names ⇒ Array<String>
List of name of the trainers.
-
#special_group ⇒ Integer
ID of the group that holds the event variation of the battle.
-
#team ⇒ Array<Hash>
List of Pokemon Hash (PFM::Pokemon.generate_from_hash).
-
#vs_type ⇒ Integer
The battle type 1v1, 2v2, 3v3…
Attributes inherited from Base
Class Method Summary collapse
-
.class_name(id) ⇒ String
Return the trainer class name.
-
.data_filename
Name of the file containing the data.
-
.get(id) ⇒ GameData::Trainer
Get a specific trainer.
Instance Method Summary collapse
-
#initialize ⇒ Trainer
constructor
Create a new Trainer.
Methods included from DataSource
[], all, convert_to_symbols, db_symbol, get_id, id_valid?, load
Constructor Details
#initialize ⇒ Trainer
Create a new Trainer
Instance Attribute Details
#base_money ⇒ Integer
The value that is multiplied to the last pokemon level to get the money the trainer gives
#battler ⇒ String
The name of the battler in Graphics/Battlers
#internal_names ⇒ Array<String>
List of name of the trainers
#special_group ⇒ Integer
ID of the group that holds the event variation of the battle
#team ⇒ Array<Hash>
List of Pokemon Hash (PFM::Pokemon.generate_from_hash)
#vs_type ⇒ Integer
The battle type 1v1, 2v2, 3v3…
Class Method Details
.class_name(id) ⇒ String
Return the trainer class name
.data_filename
Name of the file containing the data
.get(id) ⇒ GameData::Trainer
Get a specific trainer