/[ambar]/ambar/accion.py
ViewVC logotype

Diff of /ambar/accion.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2.4 by amoyav, Wed Jul 30 14:17:57 2003 UTC revision 2.5 by TuringTest, Tue Aug 19 22:46:26 2003 UTC
# Line 78  class Accion(object): Line 78  class Accion(object):
78              "mover":               [ ("id", "Personaje"), ("sala_destino", "Sala") ],              "mover":               [ ("id", "Personaje"), ("sala_destino", "Sala") ],
79              "seguir":              [ ("id", "Personaje"), ("lider", "Personaje") ],              "seguir":              [ ("id", "Personaje"), ("lider", "Personaje") ],
80              "no_seguir":           [ ("id", "Personaje") ],              "no_seguir":           [ ("id", "Personaje") ],
81              "hablar":              [ ("id", "Personaje"), ("mensaje", "string"), ("idioma", "Idioma") ],              "hablar":              [ ("id", "Personaje"), ("texto", "string"), ("idioma", "Idioma", "oestron") ],
82              "susurrar":            [ ("id", "Personaje"), ("oyente", "Personaje"), ("mensaje", "string"), ("idioma", "Idioma") ],              "susurrar":            [ ("id", "Personaje"), ("oyente", "Personaje"), ("texto", "string"), ("idioma", "Idioma") ],
83              "gritar":              [ ("id", "Personaje"), ("mensaje", "string"), ("idioma", "Idioma") ],              "gritar":              [ ("id", "Personaje"), ("texto", "string"), ("idioma", "Idioma") ],
84              "actuar":              [ ("id", "Personaje"), ("texto", "string") ],              "actuar":              [ ("id", "Personaje"), ("texto", "string") ],
85              "actuar_individual":   [ ("id", "Personaje"), ("espectador", "Personaje"), ("texto", "string") ],              "actuar_individual":   [ ("id", "Personaje"), ("espectador", "Personaje"), ("texto", "string") ],
86              "actuar_uno_mismo":    [ ("id", "Personaje"), ("texto", "string") ],              "actuar_uno_mismo":    [ ("id", "Personaje"), ("texto", "string") ],
# Line 381  class Accion(object): Line 381  class Accion(object):
381                      parametros_resueltos[parametro["nombre"]] = valor                      parametros_resueltos[parametro["nombre"]] = valor
382    
383              # Obtener la función sobre el objeto base, y llamarla.              # Obtener la función sobre el objeto base, y llamarla.
384                escribir("Ejecutando accion: " + repr(self.nombre) + " sobre el objeto: " + repr(objeto_base) )
385              funcion = getattr(objeto_base, self.nombre, None)              funcion = getattr(objeto_base, self.nombre, None)
386              if funcion != None:              if funcion != None:
387                  apply(funcion, (), parametros_resueltos)                  apply(funcion, (), parametros_resueltos)

Legend:
Removed from v.2.4  
changed lines
  Added in v.2.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26