Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pilas/motores/motor.py
blob: 76c1d268cb64bf0aa76c74033d9fe74a684987b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# pilas engine - a video game framework.
#
# copyright 2010 - hugo ruscitti
# license: lgplv3 (see http://www.gnu.org/licenses/lgpl.html)
#
# website - http://www.pilas-engine.com.ar


def abstract():
    raise Exception("Tienes que re-definir este metodo.")

class Motor(object):
    
    def __init__(self):
        pass

    def obtener_actor(self, imagen, x, y):
        abstract()

    def obtener_texto(self, texto, x, y):
        abstract()
    
    def obtener_canvas(self, ancho, alto):
        abstract()
    
    def obtener_grilla(self, ruta, columnas, filas):
        abstract()

    def crear_ventana(self, ancho, alto, titulo):
        abstract()

    def ocultar_puntero_del_mouse(self):
        abstract()

    def mostrar_puntero_del_mouse(self):
        abstract()

    def cerrar_ventana(self):
        abstract()

    def dibujar_circulo(self, x, y, radio, color, color_borde):
        abstract()

    def pulsa_tecla(self, tecla):
        abstract()

    def centrar_ventana(self):
        abstract()

    def procesar_y_emitir_eventos(self):
        abstract()

    def procesar_evento_teclado(self, event):
        abstract()

    def definir_centro_de_la_camara(self, x, y):
        abstract()

    def obtener_centro_de_la_camara(self):
        abstract()

    def pintar(self, color):
        abstract()

    def cargar_sonido(self, ruta):
        abstract()

    def cargar_imagen(self, ruta):
        abstract()

    def obtener_imagen_cairo(self, imagen):
        abstract()

    def ejecutar_bucle_principal(self, mundo, ignorar_errores):
        abstract()