Class: GamesAndRpgParadise::Mud::Badger

Inherits:
MudObject
  • Object
show all
Includes:
Animal
Defined in:
lib/games_and_rpg_paradise/mud/animals/badger.rb

Overview

RpgParadise::Mud::Badger

Constant Summary

Constants included from Living

Living::DEFAULT_HP_FOR_HUMANS

Constants included from Adverbs

Adverbs::ADVERBS_ABBREVIATED, Adverbs::ARRAY_ADVERBS

Constants inherited from MudObject

MudObject::DEFAULT_NAME, MudObject::NAMESPACE

Instance Method Summary collapse

Methods included from Animal

#can_talk?, #e, #height?, #is_animal?, #pweight?, #set_description, #weight?

Methods included from Living

#can_breathe?, #can_talk?, #do_die, #do_resurrect, #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?, #male?, #neuter?, #reset, #set_female, #set_male, #set_neuter, #subjective_case?

Methods inherited from MudObject

[], #add, #add_prop, #add_to_inventory, #alias_action, #can_speak?, #define_action, #describe_the_mud_object, #description?, disable_debug, #empty?, enable_debug, #enable_speak, #find, #has_inventory?, #height?, #id?, #inspect, #internal_hash?, #inventory?, #is_armour?, #is_inventory?, #is_mud_object?, #is_weapon?, #is_wearable?, #length?, #method_missing, #name=, #name?, #obtain_name_from_filename, #random_inventory_element, #report_height, #report_weight, #reset, #run, #set_description, #set_height, #set_is_an_armour, #set_is_inventory, #set_is_wearable, #set_length, #set_name, #set_object_name, #set_value, #set_weight, shall_we_debug?, #show_inventory, #store, #store_where?, #value?, #wear, #wearables?, #weight?, #who_am_i?, #wields?

Constructor Details

#initializeBadger

#

initialize

#


20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/games_and_rpg_paradise/mud/animals/badger.rb', line 20

def initialize
  set_desc "
  This creature's fur is grayish and grizzled with black.
  A 'badge-like' black mark can be seen on its face, 
  accented by white that extends from the face rearward.
  The body of this being seems well suited for digging -
  it is short and stout and somewhat flattened. Its
  ears are rather short and its snouth is slightly
  upturned.
  "
  set_length '600-750mm'
  set_weight '8-12kg' # For an adult badger.
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class GamesAndRpgParadise::Mud::MudObject