Class: Studio::Trainer

Inherits:
Object show all
Defined in:
docs/3_Studio.rb

Overview

Data class describing a trainer

Defined Under Namespace

Classes: Resources

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#ai ⇒ Integer (readonly)

AI level of that trainer

Returns:

  • (Integer)


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

Returns:

  • (Array<Hash>)


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)

Returns:

  • (Integer)


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

Returns:

  • (Integer)


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

Returns:

  • (Symbol)


1135
1136
1137
# File 'docs/3_Studio.rb', line 1135

def db_symbol
  @db_symbol
end

#id ⇒ Integer (readonly)

ID of the trainer

Returns:

  • (Integer)


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)

Returns:

  • (Boolean)


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

Returns:



1153
1154
1155
# File 'docs/3_Studio.rb', line 1153

def party
  @party
end

#resources ⇒ Resources (readonly)

Resources of the trainer

Returns:



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)

Returns:

  • (Integer)


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

Returns:



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

Returns:



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