Class: Studio::Type

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

Overview

Data class describing a type

Defined Under Namespace

Classes: DamageTo

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#colorColor? (readonly)

Color of the type

Returns:



1039
1040
1041
# File 'docs/3_Studio.rb', line 1039

def color
  @color
end

#damage_toArray<DamageTo> (readonly)

List of damage the type deals to another type

Returns:



1036
1037
1038
# File 'docs/3_Studio.rb', line 1036

def damage_to
  @damage_to
end

#db_symbolSymbol (readonly)

db_symbol of the type

Returns:

  • (Symbol)


1030
1031
1032
# File 'docs/3_Studio.rb', line 1030

def db_symbol
  @db_symbol
end

#idInteger (readonly)

ID of the type

Returns:

  • (Integer)


1027
1028
1029
# File 'docs/3_Studio.rb', line 1027

def id
  @id
end

#text_idInteger (readonly)

ID of the text of the type in the text files

Returns:

  • (Integer)


1033
1034
1035
# File 'docs/3_Studio.rb', line 1033

def text_id
  @text_id
end

Instance Method Details

#hit(other_type) ⇒ Float

Get the modifier of this type when hitting another type

Parameters:

  • other_type (Symbol)

    db_symbol of the other type

Returns:

  • (Float)


1047
1048
# File 'docs/3_Studio.rb', line 1047

def hit(other_type)
end

#nameString

Get the text name of the type

Returns:



1042
1043
# File 'docs/3_Studio.rb', line 1042

def name
end