Class: GamesAndRpgParadise::Mud::Ghosts
- Inherits:
-
MudObject
- Object
- MudObject
- GamesAndRpgParadise::Mud::Ghosts
show all
- Defined in:
- lib/games_and_rpg_paradise/mud/ghosts/ghosts.rb
Overview
Constant Summary
collapse
- NAMESPACE =
inspect
Constants inherited
from MudObject
MudObject::DEFAULT_NAME
Class Method Summary
collapse
-
.[](i = ARGV) ⇒ Object
# === GamesAndRpgParadise::MUD::Ghosts[] ========================================================================= #.
Instance Method Summary
collapse
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, #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
#initialize(commandline_arguments = nil, run_already = true) ⇒ Ghosts
25
26
27
28
29
30
31
32
33
34
|
# File 'lib/games_and_rpg_paradise/mud/ghosts/ghosts.rb', line 25
def initialize(
commandline_arguments = nil,
run_already = true
)
reset
set_commandline_arguments(
commandline_arguments
)
run if run_already
end
|
Class Method Details
.[](i = ARGV) ⇒ Object
#
GamesAndRpgParadise::MUD::Ghosts[]
#
60
61
62
|
# File 'lib/games_and_rpg_paradise/mud/ghosts/ghosts.rb', line 60
def self.[](i = ARGV)
new(i)
end
|
Instance Method Details
#reset ⇒ Object
39
40
41
|
# File 'lib/games_and_rpg_paradise/mud/ghosts/ghosts.rb', line 39
def reset
super()
end
|
#run ⇒ Object
46
47
48
|
# File 'lib/games_and_rpg_paradise/mud/ghosts/ghosts.rb', line 46
def run
set_ghost_state
end
|
#set_ghost_state(i = true) ⇒ Object
53
54
55
|
# File 'lib/games_and_rpg_paradise/mud/ghosts/ghosts.rb', line 53
def set_ghost_state(i = true)
@ghost_state = i
end
|