Module: GamesAndRpgParadise::Mud::Animal

Includes:
Living
Included in:
Badger, Parrot, Unicorn
Defined in:
lib/games_and_rpg_paradise/mud/animals/animal.rb

Overview

GamesAndRpgParadise::Mud::Animal

Constant Summary

Constants included from Living

Living::DEFAULT_HP_FOR_HUMANS

Constants included from Adverbs

GamesAndRpgParadise::Mud::Adverbs::ADVERBS_ABBREVIATED, GamesAndRpgParadise::Mud::Adverbs::ARRAY_ADVERBS

Instance Method Summary collapse

Methods included from Living

#can_breathe?, #do_die, #do_resurrect, #initialize, #is_alive?, #is_dead?, #is_poisoned?, #my_race?, #race?, #report_race, #reset, #return_default_hp, #return_race, #run, #set_stats_packages, #skills?

Methods included from Talk

#can_speak?, included, #say, #set_how

Methods included from Adverbs

all?, file?, find_adverb_for, keys, n_adverbs?, original_adverbs

Methods included from Hitpoints

#deduct_hp, #hp?, #max_hp?, #modify_health, #reset, #sync_hp

Methods included from Gender

#female?, #gender?, #has_gender?, #initialize, #male?, #neuter?, #reset, #set_female, #set_male, #set_neuter, #subjective_case?

Instance Method Details

#can_talk?Boolean

#

can_talk?

Animals can not really talk.

#

Returns:

  • (Boolean)


32
33
34
# File 'lib/games_and_rpg_paradise/mud/animals/animal.rb', line 32

def can_talk?
  false
end

#e(i = '') ⇒ Object

#

e

#


23
24
25
# File 'lib/games_and_rpg_paradise/mud/animals/animal.rb', line 23

def e(i = '')
  puts i
end

#height?Boolean

#

height?

#

Returns:

  • (Boolean)


46
47
48
# File 'lib/games_and_rpg_paradise/mud/animals/animal.rb', line 46

def height?
  @height
end

#is_animal?Boolean

#

is_animal?

#

Returns:

  • (Boolean)


39
40
41
# File 'lib/games_and_rpg_paradise/mud/animals/animal.rb', line 39

def is_animal?
  true
end

#pweight?Boolean

#

pweight?

#

Returns:

  • (Boolean)


60
61
62
# File 'lib/games_and_rpg_paradise/mud/animals/animal.rb', line 60

def pweight?
  e "My weight is #{weight?.round(2)} kg."
end

#set_description(i) ⇒ Object

#

set_description

#


67
68
69
# File 'lib/games_and_rpg_paradise/mud/animals/animal.rb', line 67

def set_description(i)
  @description = i
end

#weight?Boolean

#

weight?

#

Returns:

  • (Boolean)


53
54
55
# File 'lib/games_and_rpg_paradise/mud/animals/animal.rb', line 53

def weight?
  @weight
end