Class: GamesAndRpgParadise::Mud::Book

Inherits:
Armour show all
Defined in:
lib/games_and_rpg_paradise/mud/objects/book/books.rb

Overview

RpgParadise::Mud::Book

Constant Summary

Constants inherited from MudObject

MudObject::DEFAULT_NAME, MudObject::NAMESPACE

Instance Method Summary collapse

Methods inherited from Armour

#set_armourclass, #set_material_type

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, #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

#initializeBook

#

initialize

#


18
19
20
# File 'lib/games_and_rpg_paradise/mud/objects/book/books.rb', line 18

def initialize
 super()
end

Dynamic Method Handling

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

Instance Method Details

#resetObject

#

reset

#


25
26
27
28
29
# File 'lib/games_and_rpg_paradise/mud/objects/book/books.rb', line 25

def reset
  set_weight 100 # in n gram
  set_n_pages 50
  set_material :parchment
end