def __init__(self): super(LockCommands, self).__init__() self.on_message('actor_lock', self.__actor_lock, filter=messages.for_entities_of_class(Actor)) self.on_message('actor_unlock', self.__actor_unlock, filter=messages.for_entities_of_class(Actor)) self.on_message('player_command', self.__player_command, filter=messages.for_actors_with_item_of_class(Key))
def __init__(self): super(LockCommands, self).__init__() self.on_message('actor_lock', self.__actor_lock, filter=messages.for_entities_of_class(Actor)) self.on_message('actor_unlock', self.__actor_unlock, filter=messages.for_entities_of_class(Actor)) self.on_message('player_command', self.__player_command, filter=messages.for_actors_with_item_of_class(Key))
def __init__(self): super(LightCommands, self).__init__() self.on_message('player_command', self.__player_command, filter=messages.for_actors_with_item_of_class(Light))
def __init__(self): super(LightCommands, self).__init__() self.on_message('player_command', self.__player_command, filter=messages.for_actors_with_item_of_class(Light))