Class: Studio::Trainer
- Defined in:
- scripts/00800 Studio/00001 Data/00061 Trainer.rb
Overview
Data class describing a trainer
Instance Attribute Summary collapse
-
#ai ⇒ Integer
readonly
AI level of that trainer.
-
#bag_entries ⇒ Array<Hash>
readonly
List of all items the trainer holds in its bag.
-
#base_money ⇒ Integer
readonly
Base factor of the money gave by this trainer in case of defeate (money = base * last_level).
-
#battle_id ⇒ Integer
readonly
ID of the battler events to load in order to give more life to this trainer.
-
#db_symbol ⇒ Symbol
readonly
db_symbol of the trainer.
-
#id ⇒ Integer
readonly
ID of the trainer.
-
#is_couple ⇒ Boolean
readonly
If the trainer is actually a couple (two trainer on same picture).
-
#party ⇒ Array<Group::Encounter>
readonly
Party of that trainer.
-
#vs_type ⇒ Integer
readonly
vs type of the trainer (if he uses 1 2 or more creature at once).
Instance Method Summary collapse
-
#battler ⇒ String
Get the graphic battler of the trainer.
-
#class_name ⇒ String
Get the class name of the trainer.
-
#name ⇒ String
Get the text name of the trainer.
Instance Attribute Details
#ai ⇒ Integer (readonly)
AI level of that trainer
30 31 32 |
# File 'scripts/00800 Studio/00001 Data/00061 Trainer.rb', line 30 def ai @ai end |
#bag_entries ⇒ Array<Hash> (readonly)
List of all items the trainer holds in its bag
38 39 40 |
# File 'scripts/00800 Studio/00001 Data/00061 Trainer.rb', line 38 def bag_entries @bag_entries end |
#base_money ⇒ Integer (readonly)
Base factor of the money gave by this trainer in case of defeate (money = base * last_level)
22 23 24 |
# File 'scripts/00800 Studio/00001 Data/00061 Trainer.rb', line 22 def base_money @base_money end |
#battle_id ⇒ Integer (readonly)
ID of the battler events to load in order to give more life to this trainer
26 27 28 |
# File 'scripts/00800 Studio/00001 Data/00061 Trainer.rb', line 26 def battle_id @battle_id end |
#db_symbol ⇒ Symbol (readonly)
db_symbol of the trainer
10 11 12 |
# File 'scripts/00800 Studio/00001 Data/00061 Trainer.rb', line 10 def db_symbol @db_symbol end |
#id ⇒ Integer (readonly)
ID of the trainer
6 7 8 |
# File 'scripts/00800 Studio/00001 Data/00061 Trainer.rb', line 6 def id @id end |
#is_couple ⇒ Boolean (readonly)
If the trainer is actually a couple (two trainer on same picture)
18 19 20 |
# File 'scripts/00800 Studio/00001 Data/00061 Trainer.rb', line 18 def is_couple @is_couple end |
#party ⇒ Array<Group::Encounter> (readonly)
Party of that trainer
34 35 36 |
# File 'scripts/00800 Studio/00001 Data/00061 Trainer.rb', line 34 def party @party end |
#vs_type ⇒ Integer (readonly)
vs type of the trainer (if he uses 1 2 or more creature at once)
14 15 16 |
# File 'scripts/00800 Studio/00001 Data/00061 Trainer.rb', line 14 def vs_type @vs_type end |
Instance Method Details
#battler ⇒ String
Get the graphic battler of the trainer
42 43 44 |
# File 'scripts/00800 Studio/00001 Data/00061 Trainer.rb', line 42 def battler return @battlers.is_a?(String) ? @battlers : (@battlers.first || '__undefined__') end |
#class_name ⇒ String
Get the class name of the trainer
48 49 50 |
# File 'scripts/00800 Studio/00001 Data/00061 Trainer.rb', line 48 def class_name return text_get(29, @id) end |
#name ⇒ String
Get the text name of the trainer
54 55 56 |
# File 'scripts/00800 Studio/00001 Data/00061 Trainer.rb', line 54 def name return text_get(62, @id) end |