An element of the universe.
|
|
__init__(self,
key,
universe,
filename=None)
Set up a new element. |
source code
|
|
|
|
reload(self)
Create a new element and replace this one. |
source code
|
|
|
|
destroy(self)
Remove an element from the universe and destroy it. |
source code
|
|
|
|
facets(self)
Return a list of non-inherited facets for this element. |
source code
|
|
|
|
has_facet(self,
facet)
Return whether the non-inherited facet exists. |
source code
|
|
|
|
remove_facet(self,
facet)
Remove a facet from the element. |
source code
|
|
|
|
ancestry(self)
Return a list of the element's inheritance lineage. |
source code
|
|
|
|
get(self,
facet,
default=None)
Retrieve values. |
source code
|
|
|
|
getboolean(self,
facet,
default=None)
Retrieve values as boolean type. |
source code
|
|
|
|
getint(self,
facet,
default=None)
Return values as int/long type. |
source code
|
|
|
|
getfloat(self,
facet,
default=None)
Return values as float type. |
source code
|
|
|
|
getlist(self,
facet,
default=None)
Return values as list type. |
source code
|
|
|
|
getdict(self,
facet,
default=None)
Return values as dict type. |
source code
|
|
|
|
|
|
|
append(self,
facet,
value)
Append value tp a list. |
source code
|
|
|
|
new_event(self,
action,
when=None)
Create, attach and enqueue an event element. |
source code
|
|
|
|
send(self,
message,
eol=u'$(eol)',
raw=False,
flush=False,
add_prompt=True,
just_prompt=False,
add_terminator=False,
prepend_padding=True)
Convenience method to pass messages to an owner. |
source code
|
|
|
|
can_run(self,
command)
Check if the user can run this command object. |
source code
|
|
|
|
update_location(self)
Make sure the location's contents contain this element. |
source code
|
|
|
|
clean_contents(self)
Make sure the element's contents aren't bogus. |
source code
|
|
|
|
go_to(self,
location)
Relocate the element to a specific location. |
source code
|
|
|
|
go_home(self)
Relocate the element to its default location. |
source code
|
|
|
|
move_direction(self,
direction)
Relocate the element in a specified direction. |
source code
|
|
|
|
look_at(self,
key)
Show an element to another element. |
source code
|
|
|
|
portals(self)
Map the portal directions for an area to neighbors. |
source code
|
|
|
|
link_neighbor(self,
direction)
Return the element linked in a given direction. |
source code
|
|
|
|
echo_to_location(self,
message)
Show a message to other elements in the current location. |
source code
|
|