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

Diff of /ambar/dialogosalir.py

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

revision 2.0 by pabloruiz, Sat Aug 17 21:11:09 2002 UTC revision 2.1 by pabloruiz, Tue Nov 5 22:58:22 2002 UTC
# Line 1  Line 1 
1  #!/usr/bin/env python  #!/usr/bin/env python
2  #  #
3  #Minë. Mundo Interactivo-Narrativo en Español [Tierra-Media]  #Minë. Mundo Interactivo-Narrativo en Español [Tierra-Media]
4  #Copyright (C) 2002  Pablo Ruiz Múzquiz  #Copyright (C) 2002  Pablo Ruiz Múzquiz
5  #  #
6  #  #
7  #This program is free software; you can redistribute it and/or modify  #This program is free software; you can redistribute it and/or modify
8  #it under the terms of the GNU General Public License as published by  #it under the terms of the GNU General Public License as published by
9  #the Free Software Foundation; either version 2 of the License, or  #the Free Software Foundation; either version 2 of the License, or
10  #(at your option) any later version.  #(at your option) any later version.
11  #  #
12  #This program is distributed in the hope that it will be useful,  #This program is distributed in the hope that it will be useful,
13  #but WITHOUT ANY WARRANTY; without even the implied warranty of  #but WITHOUT ANY WARRANTY; without even the implied warranty of
14  #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  #GNU General Public License for more details.  #GNU General Public License for more details.
16  #  #
17  #You should have received a copy of the GNU General Public License  #You should have received a copy of the GNU General Public License
18  #along with this program; if not, write to the Free Software  #along with this program; if not, write to the Free Software
19  #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA  #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20  #  #
21  #  #
22  #Fichero: dialogosalir.py  #Fichero: dialogosalir.py
23    
24  """Clase DialogoSalir."""  """Clase DialogoSalir."""
25    
26  from dialogo import *  from dialogo import *
27    
28    
29  class DialogoSalir(Dialogo):  class DialogoSalir(Dialogo):
30      """Dialogo mantenido con el jugador cuando quiere liberar el personaje      """Dialogo mantenido con el jugador cuando quiere liberar el personaje
31      y desconectar de Mine.      y desconectar de Mine.
32    
33      Invariantes:      Invariantes:
34         conn != None         conn != None
35      """      """
36    
37      def __init__(self, conn):      def __init__(self, conn):
38          """Crea el diálogo.          """Crea el diálogo.
39    
40          Requiere:          Requiere:
41            conn != None            conn != None
42          """          """
43          self.__dict__["conn"] = conn          self.__dict__["conn"] = conn
44          self.estado_0()          self.estado_0()
45    
46    
47      def estado_0(self):      def estado_0(self):
48          self.poner_estado(0)          self.poner_estado(0)
49    
50    
51      def comando_0(self, cmd_list):      def comando_0(self, cmd_list):
52          return None          return None
53                            
54                            
55  # Código para pruebas unitarias del módulo.  # Código para pruebas unitarias del módulo.
56    
57  if (__name__ == '__main__'):  if (__name__ == '__main__'):
58      print "No hay código para pruebas unitarias del módulo."      print "No hay código para pruebas unitarias del módulo."
59      print "Para probar, ejecutar mine.py y conectarse via telnet."      print "Para probar, ejecutar mine.py y conectarse via telnet."
60    

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

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