Class: Studio::Type
Overview
Data class describing a type
Defined Under Namespace
Classes: DamageTo
Instance Attribute Summary collapse
-
#color ⇒ Color?
readonly
Color of the type.
-
#damage_to ⇒ Array<DamageTo>
readonly
List of damage the type deals to another type.
-
#db_symbol ⇒ Symbol
readonly
db_symbol of the type.
-
#id ⇒ Integer
readonly
ID of the type.
-
#text_id ⇒ Integer
readonly
ID of the text of the type in the text files.
Instance Method Summary collapse
-
#hit(other_type) ⇒ Float
Get the modifier of this type when hitting another type.
-
#name ⇒ String
Get the text name of the type.
Instance Attribute Details
#color ⇒ Color? (readonly)
Color of the type
1039 1040 1041 |
# File 'docs/3_Studio.rb', line 1039 def color @color end |
#damage_to ⇒ Array<DamageTo> (readonly)
List of damage the type deals to another type
1036 1037 1038 |
# File 'docs/3_Studio.rb', line 1036 def damage_to @damage_to end |
#db_symbol ⇒ Symbol (readonly)
db_symbol of the type
1030 1031 1032 |
# File 'docs/3_Studio.rb', line 1030 def db_symbol @db_symbol end |
#id ⇒ Integer (readonly)
ID of the type
1027 1028 1029 |
# File 'docs/3_Studio.rb', line 1027 def id @id end |
#text_id ⇒ Integer (readonly)
ID of the text of the type in the text files
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
1047 1048 |
# File 'docs/3_Studio.rb', line 1047 def hit(other_type) end |
#name ⇒ String
Get the text name of the type
1042 1043 |
# File 'docs/3_Studio.rb', line 1042 def name end |