Class: Studio::Trainer
Overview
Data class describing a trainer
Defined Under Namespace
Classes: Resources
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.
-
#resources ⇒ Resources
readonly
Resources of the trainer.
-
#vs_type ⇒ Integer
readonly
vs type of the trainer (if he uses 1 2 or more creature at once).
Instance Method Summary collapse
-
#class_name ⇒ String
Get the class name of the trainer.
-
#defeat_text
Get the defeat text of the trainer.
-
#name ⇒ String
Get the text name of the trainer.
-
#victory_text
Get the victory text of the trainer.
Instance Attribute Details
#ai ⇒ Integer (readonly)
AI level of that trainer
1150 1151 1152 |
# File 'docs/3_Studio.rb', line 1150 def ai @ai end |
#bag_entries ⇒ Array<Hash> (readonly)
List of all items the trainer holds in its bag
1156 1157 1158 |
# File 'docs/3_Studio.rb', line 1156 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)
1144 1145 1146 |
# File 'docs/3_Studio.rb', line 1144 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
1147 1148 1149 |
# File 'docs/3_Studio.rb', line 1147 def battle_id @battle_id end |
#db_symbol ⇒ Symbol (readonly)
db_symbol of the trainer
1135 1136 1137 |
# File 'docs/3_Studio.rb', line 1135 def db_symbol @db_symbol end |
#id ⇒ Integer (readonly)
ID of the trainer
1132 1133 1134 |
# File 'docs/3_Studio.rb', line 1132 def id @id end |
#is_couple ⇒ Boolean (readonly)
If the trainer is actually a couple (two trainer on same picture)
1141 1142 1143 |
# File 'docs/3_Studio.rb', line 1141 def is_couple @is_couple end |
#party ⇒ Array<Group::Encounter> (readonly)
Party of that trainer
1153 1154 1155 |
# File 'docs/3_Studio.rb', line 1153 def party @party end |
#resources ⇒ Resources (readonly)
Resources of the trainer
1159 1160 1161 |
# File 'docs/3_Studio.rb', line 1159 def resources @resources end |
#vs_type ⇒ Integer (readonly)
vs type of the trainer (if he uses 1 2 or more creature at once)
1138 1139 1140 |
# File 'docs/3_Studio.rb', line 1138 def vs_type @vs_type end |
Instance Method Details
#class_name ⇒ String
Get the class name of the trainer
1162 1163 |
# File 'docs/3_Studio.rb', line 1162 def class_name end |
#defeat_text
Get the defeat text of the trainer
1172 1173 |
# File 'docs/3_Studio.rb', line 1172 def defeat_text end |
#name ⇒ String
Get the text name of the trainer
1166 1167 |
# File 'docs/3_Studio.rb', line 1166 def name end |
#victory_text
Get the victory text of the trainer
1169 1170 |
# File 'docs/3_Studio.rb', line 1169 def victory_text end |