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
972 973 974 |
# File 'docs/3_Studio.rb', line 972 def ai @ai end |
#bag_entries ⇒ Array<Hash> (readonly)
List of all items the trainer holds in its bag
978 979 980 |
# File 'docs/3_Studio.rb', line 978 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)
966 967 968 |
# File 'docs/3_Studio.rb', line 966 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
969 970 971 |
# File 'docs/3_Studio.rb', line 969 def battle_id @battle_id end |
#db_symbol ⇒ Symbol (readonly)
db_symbol of the trainer
957 958 959 |
# File 'docs/3_Studio.rb', line 957 def db_symbol @db_symbol end |
#id ⇒ Integer (readonly)
ID of the trainer
954 955 956 |
# File 'docs/3_Studio.rb', line 954 def id @id end |
#is_couple ⇒ Boolean (readonly)
If the trainer is actually a couple (two trainer on same picture)
963 964 965 |
# File 'docs/3_Studio.rb', line 963 def is_couple @is_couple end |
#party ⇒ Array<Group::Encounter> (readonly)
Party of that trainer
975 976 977 |
# File 'docs/3_Studio.rb', line 975 def party @party end |
#resources ⇒ Resources (readonly)
Resources of the trainer
981 982 983 |
# File 'docs/3_Studio.rb', line 981 def resources @resources end |
#vs_type ⇒ Integer (readonly)
vs type of the trainer (if he uses 1 2 or more creature at once)
960 961 962 |
# File 'docs/3_Studio.rb', line 960 def vs_type @vs_type end |
Instance Method Details
#class_name ⇒ String
Get the class name of the trainer
984 985 |
# File 'docs/3_Studio.rb', line 984 def class_name end |
#defeat_text
Get the defeat text of the trainer
994 995 |
# File 'docs/3_Studio.rb', line 994 def defeat_text end |
#name ⇒ String
Get the text name of the trainer
988 989 |
# File 'docs/3_Studio.rb', line 988 def name end |
#victory_text
Get the victory text of the trainer
991 992 |
# File 'docs/3_Studio.rb', line 991 def victory_text end |