Class: Studio::Creature

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

Overview

Data class describing a creature

Direct Known Subclasses

CreatureForm

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#db_symbol ⇒ Symbol (readonly)

db_symbol of the specie

Returns:

  • (Symbol)


688
689
690
# File 'docs/3_Studio.rb', line 688

def db_symbol
  @db_symbol
end

#forms ⇒ Array<CreatureForm> (readonly)

all the form of the creature

Returns:



691
692
693
# File 'docs/3_Studio.rb', line 691

def forms
  @forms
end

#id ⇒ Integer (readonly)

ID of the specie

Returns:

  • (Integer)


685
686
687
# File 'docs/3_Studio.rb', line 685

def id
  @id
end

Instance Method Details

#description ⇒ String Also known as: descr

Get the creature description

Returns:



702
703
# File 'docs/3_Studio.rb', line 702

def description
end

#name ⇒ String

Get the creature name

Returns:



694
695
# File 'docs/3_Studio.rb', line 694

def name
end

#species ⇒ String

Get the specie name

Returns:



698
699
# File 'docs/3_Studio.rb', line 698

def species
end