Class: Studio::Creature

Inherits:
Object show all
Defined in:
scripts/00800 Studio/00001 Data/00041 Creature.rb

Overview

Data class describing a creature

Direct Known Subclasses

CreatureForm

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#db_symbolSymbol (readonly)

db_symbol of the specie

Returns:

  • (Symbol)


10
11
12
# File 'scripts/00800 Studio/00001 Data/00041 Creature.rb', line 10

def db_symbol
  @db_symbol
end

#formsArray<CreatureForm> (readonly)

all the form of the creature

Returns:



14
15
16
# File 'scripts/00800 Studio/00001 Data/00041 Creature.rb', line 14

def forms
  @forms
end

#idInteger (readonly)

ID of the specie

Returns:



6
7
8
# File 'scripts/00800 Studio/00001 Data/00041 Creature.rb', line 6

def id
  @id
end

Instance Method Details

#descriptionString Also known as: descr

Get the creature description

Returns:



30
31
32
# File 'scripts/00800 Studio/00001 Data/00041 Creature.rb', line 30

def description
  return text_get(2, @id)
end

#nameString

Get the creature name

Returns:



18
19
20
# File 'scripts/00800 Studio/00001 Data/00041 Creature.rb', line 18

def name
  return text_get(0, @id)
end

#speciesString

Get the specie name

Returns:



24
25
26
# File 'scripts/00800 Studio/00001 Data/00041 Creature.rb', line 24

def species
  return text_get(1, @id)
end