예제 #1
0
파일: spatial.py 프로젝트: vreon/figment
def dialogue(actor, second_person_verb, third_person_verb, message):
    if not actor.is_(Spatial):
        actor.tell("You're unable to do that.")
        return

    message = upper_first(message.strip().replace('"', "'"))

    if not message[-1] in ('.', '?', '!'):
        message += '.'

    actor.tell('You {0}: "{1}"'.format(second_person_verb, message))
    actor.Spatial.emit('{0.Named.Name} {1}: "{2}"'.format(actor, third_person_verb, message))
예제 #2
0
def dialogue(actor, second_person_verb, third_person_verb, message):
    if not actor.is_(Spatial):
        actor.tell("You're unable to do that.")
        return

    message = upper_first(message.strip().replace('"', "'"))

    if not message[-1] in (".", "?", "!"):
        message += "."

    actor.tell('You {0}: "{1}"'.format(second_person_verb, message))
    actor.Spatial.emit('{0.Named.Name} {1}: "{2}"'.format(
        actor, third_person_verb, message))
예제 #3
0
 def Name(self):
     return upper_first(self.name)
예제 #4
0
파일: named.py 프로젝트: vreon/figment
 def Name(self):
     return upper_first(self.name)