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
1218 1219 1220 |
# File 'docs/3_Studio.rb', line 1218 def color @color end |
#damage_to ⇒ Array<DamageTo> (readonly)
List of damage the type deals to another type
1215 1216 1217 |
# File 'docs/3_Studio.rb', line 1215 def damage_to @damage_to end |
#db_symbol ⇒ Symbol (readonly)
db_symbol of the type
1209 1210 1211 |
# File 'docs/3_Studio.rb', line 1209 def db_symbol @db_symbol end |
#id ⇒ Integer (readonly)
ID of the type
1206 1207 1208 |
# File 'docs/3_Studio.rb', line 1206 def id @id end |
#text_id ⇒ Integer (readonly)
ID of the text of the type in the text files
1212 1213 1214 |
# File 'docs/3_Studio.rb', line 1212 def text_id @text_id end |
Instance Method Details
#hit(other_type) ⇒ Float
Get the modifier of this type when hitting another type
1226 1227 |
# File 'docs/3_Studio.rb', line 1226 def hit(other_type) end |
#name ⇒ String
Get the text name of the type
1221 1222 |
# File 'docs/3_Studio.rb', line 1221 def name end |