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

#aiInteger (readonly)

AI level of that trainer

Returns:

  • (Integer)


972
973
974
# File 'docs/3_Studio.rb', line 972

def ai
  @ai
end

#bag_entriesArray<Hash> (readonly)

List of all items the trainer holds in its bag

Returns:

  • (Array<Hash>)


978
979
980
# File 'docs/3_Studio.rb', line 978

def bag_entries
  @bag_entries
end

#base_moneyInteger (readonly)

Base factor of the money gave by this trainer in case of defeate (money = base * last_level)

Returns:

  • (Integer)


966
967
968
# File 'docs/3_Studio.rb', line 966

def base_money
  @base_money
end

#battle_idInteger (readonly)

ID of the battler events to load in order to give more life to this trainer

Returns:

  • (Integer)


969
970
971
# File 'docs/3_Studio.rb', line 969

def battle_id
  @battle_id
end

#db_symbolSymbol (readonly)

db_symbol of the trainer

Returns:

  • (Symbol)


957
958
959
# File 'docs/3_Studio.rb', line 957

def db_symbol
  @db_symbol
end

#idInteger (readonly)

ID of the trainer

Returns:

  • (Integer)


954
955
956
# File 'docs/3_Studio.rb', line 954

def id
  @id
end

#is_coupleBoolean (readonly)

If the trainer is actually a couple (two trainer on same picture)

Returns:

  • (Boolean)


963
964
965
# File 'docs/3_Studio.rb', line 963

def is_couple
  @is_couple
end

#partyArray<Group::Encounter> (readonly)

Party of that trainer

Returns:



975
976
977
# File 'docs/3_Studio.rb', line 975

def party
  @party
end

#resourcesResources (readonly)

Resources of the trainer

Returns:



981
982
983
# File 'docs/3_Studio.rb', line 981

def resources
  @resources
end

#vs_typeInteger (readonly)

vs type of the trainer (if he uses 1 2 or more creature at once)

Returns:

  • (Integer)


960
961
962
# File 'docs/3_Studio.rb', line 960

def vs_type
  @vs_type
end

Instance Method Details

#class_nameString

Get the class name of the trainer

Returns:



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

#nameString

Get the text name of the trainer

Returns:



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