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

Diff of /ambar/suceso.py

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

revision 2.1 by amoyav, Thu Apr 10 15:08:56 2003 UTC revision 2.2 by amoyav, Wed Apr 23 08:03:29 2003 UTC
# Line 68  class Suceso(object): Line 68  class Suceso(object):
68      TIPOS = {      TIPOS = {
69            
70          "Personaje": {          "Personaje": {
71              "mover":               [ ("id", "Personaje"), ("direccion", "string") ],              "mover":               [ ("id", "Personaje"), ("sala_destino", "Sala") ],
72              "seguir":              [ ("id", "Personaje"), ("lider", "Personaje") ],              "seguir":              [ ("id", "Personaje"), ("lider", "Personaje") ],
73              "no_seguir":           [ ("id", "Personaje") ],              "no_seguir":           [ ("id", "Personaje") ],
74              "hablar":              [ ("id", "Personaje"), ("texto", "string"), ("idioma", "Idioma") ],              "hablar":              [ ("id", "Personaje"), ("mensaje", "string"), ("idioma", "Idioma") ],
75              "susurrar":            [ ("id", "Personaje"), ("oyente", "Personaje"), ("texto", "string"), ("idioma", "Idioma") ],              "susurrar":            [ ("id", "Personaje"), ("oyente", "Personaje"), ("mensaje", "string"), ("idioma", "Idioma") ],
76              "gritar":              [ ("id", "Personaje"), ("texto", "string"), ("idioma", "Idioma") ],              "gritar":              [ ("id", "Personaje"), ("mensaje", "string"), ("idioma", "Idioma") ],
77              "actuar":              [ ("id", "Personaje"), ("texto", "string") ],              "actuar":              [ ("id", "Personaje"), ("texto", "string") ],
78              "actuar_individual":   [ ("id", "Personaje"), ("espectador", "Personaje"), ("texto", "string") ],              "actuar_individual":   [ ("id", "Personaje"), ("espectador", "Personaje"), ("texto", "string") ],
79              "actuar_uno_mismo":    [ ("id", "Personaje"), ("texto", "string") ],              "actuar_uno_mismo":    [ ("id", "Personaje"), ("texto", "string") ],
80              "coger":               [ ("id", "Personaje"), ("objeto", "Objeto"), ("cantidad", "numero"), ("sigilo", "si_no") ],              "coger":               [ ("id", "Personaje"), ("id_objeto", "string"), ("cantidad", "numero"), ("n_orden", "numero"), ("n_instancia", "numero"), ("sigilo", "si_no") ],
81              "dejar":               [ ("id", "Personaje"), ("objeto", "Objeto"), ("cantidad", "numero"), ("sigilo", "si_no") ],              "dejar":               [ ("id", "Personaje"), ("objeto", "Objeto"), ("cantidad", "numero"), ("sigilo", "si_no") ],
82              "dar":                 [ ("id", "Personaje"), ("receptor", "Personaje"), ("objeto", "Objeto"), ("cantidad", "numero") ],              "dar":                 [ ("id", "Personaje"), ("receptor", "Personaje"), ("objeto", "Objeto"), ("cantidad", "numero") ],
83              "esconder":            [ ("id", "Personaje"), ("objeto", "Objeto"), ("cantidad", "numero") ],              "esconder":            [ ("id", "Personaje"), ("objeto", "Objeto"), ("cantidad", "numero") ],
# Line 294  class Suceso(object): Line 294  class Suceso(object):
294    
295              elif parametro["tipo"] == "string":              elif parametro["tipo"] == "string":
296                  valor = parametro["valor"]                  valor = parametro["valor"]
297    
298                elif parametro["tipo"] == "si_no":
299                    valor_str = parametro["valor"].lower()
300                    if valor_str == 's' or valor_str == 'si' or valor_str == 'sí' \
301                       or valor_str == '1':
302                        valor = 1
303                    else:
304                        valor = 0
305                                    
306              elif parametro["tipo"] == "Personaje":              elif parametro["tipo"] == "Personaje":
307                  if parametro["valor"][0] == "$":                  if parametro["valor"][0] == "$":

Legend:
Removed from v.2.1  
changed lines
  Added in v.2.2

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