Class: Studio::Creature
- Defined in:
- scripts/00800 Studio/00001 Data/00041 Creature.rb
Overview
Data class describing a creature
Direct Known Subclasses
Instance Attribute Summary collapse
-
#db_symbol ⇒ Symbol
readonly
db_symbol of the specie.
-
#forms ⇒ Array<CreatureForm>
readonly
all the form of the creature.
-
#id ⇒ Integer
readonly
ID of the specie.
Instance Method Summary collapse
-
#description ⇒ String
(also: #descr)
Get the creature description.
-
#name ⇒ String
Get the creature name.
-
#species ⇒ String
Get the specie name.
Instance Attribute Details
#db_symbol ⇒ Symbol (readonly)
db_symbol of the specie
10 11 12 |
# File 'scripts/00800 Studio/00001 Data/00041 Creature.rb', line 10 def db_symbol @db_symbol end |
#forms ⇒ Array<CreatureForm> (readonly)
all the form of the creature
14 15 16 |
# File 'scripts/00800 Studio/00001 Data/00041 Creature.rb', line 14 def forms @forms end |
#id ⇒ Integer (readonly)
ID of the specie
6 7 8 |
# File 'scripts/00800 Studio/00001 Data/00041 Creature.rb', line 6 def id @id end |
Instance Method Details
#description ⇒ String Also known as: descr
Get the creature description
30 31 32 |
# File 'scripts/00800 Studio/00001 Data/00041 Creature.rb', line 30 def description return text_get(2, @id) end |
#name ⇒ String
Get the creature name
18 19 20 |
# File 'scripts/00800 Studio/00001 Data/00041 Creature.rb', line 18 def name return text_get(0, @id) end |
#species ⇒ String
Get the specie name
24 25 26 |
# File 'scripts/00800 Studio/00001 Data/00041 Creature.rb', line 24 def species return text_get(1, @id) end |