Module: GamesAndRpgParadise::Mud::Animal
- Includes:
- Living
- Defined in:
- lib/games_and_rpg_paradise/mud/animals/animal.rb
Overview
GamesAndRpgParadise::Mud::Animal
Constant Summary
Constants included from Living
Constants included from Adverbs
GamesAndRpgParadise::Mud::Adverbs::ADVERBS_ABBREVIATED, GamesAndRpgParadise::Mud::Adverbs::ARRAY_ADVERBS
Instance Method Summary collapse
-
#can_talk? ⇒ Boolean
# === can_talk?.
-
#e(i = '') ⇒ Object
# === e ========================================================================= #.
-
#height? ⇒ Boolean
# === height? ========================================================================= #.
-
#is_animal? ⇒ Boolean
# === is_animal? ========================================================================= #.
-
#pweight? ⇒ Boolean
# === pweight? ========================================================================= #.
-
#set_description(i) ⇒ Object
# === set_description ========================================================================= #.
-
#weight? ⇒ Boolean
# === weight? ========================================================================= #.
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.
#
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?
#
46 47 48 |
# File 'lib/games_and_rpg_paradise/mud/animals/animal.rb', line 46 def height? @height end |
#is_animal? ⇒ Boolean
#
is_animal?
#
39 40 41 |
# File 'lib/games_and_rpg_paradise/mud/animals/animal.rb', line 39 def is_animal? true end |
#pweight? ⇒ Boolean
#
pweight?
#
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?
#
53 54 55 |
# File 'lib/games_and_rpg_paradise/mud/animals/animal.rb', line 53 def weight? @weight end |