OutlandsMud/typeclasses/rooms.py

36 lines
963 B
Python

"""
Room
Rooms are simple containers that has no location of their own.
"""
from evennia import DefaultRoom
from commands.default_cmdsets import ChargenCmdSet
from commands.default_cmdsets import spaceShipCmdSet
class Room(DefaultRoom):
"""
Rooms are like any Object, except their location is None
(which is default). They also use basetype_setup() to
add locks so they cannot be puppeted or picked up.
(to change that, use at_object_creation instead)
See examples/object.py for a list of
properties and methods available on all Objects.
"""
pass
class chargenRoom(Room):
def at_object_creation(self):
self.cmdset.add(ChargenCmdSet, permanent=True)
class spaceShip(Room):
def at_object_creation(self):
self.cmdset.add(spaceShipCmdSet, permanent=True)
def at_object_receive(self, character, source_location):
if character.db.created == 0:
character.execute_cmd("+intro")