Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/data
diff options
context:
space:
mode:
Diffstat (limited to 'src/data')
-rw-r--r--src/data/__init__.py2
-rw-r--r--src/data/__init__.pyobin0 -> 213 bytes
-rw-r--r--src/data/ciudad.py11
-rw-r--r--src/data/ciudad.pyobin0 -> 828 bytes
-rw-r--r--src/data/lugar.py43
-rw-r--r--src/data/lugar.pyobin0 -> 1599 bytes
-rw-r--r--src/data/lugar.py~26
-rw-r--r--src/data/nieve.py8
-rw-r--r--src/data/nieve.pyobin0 -> 799 bytes
-rw-r--r--src/data/playa.py15
-rw-r--r--src/data/playa.pyobin0 -> 922 bytes
11 files changed, 105 insertions, 0 deletions
diff --git a/src/data/__init__.py b/src/data/__init__.py
new file mode 100644
index 0000000..d0b43b7
--- /dev/null
+++ b/src/data/__init__.py
@@ -0,0 +1,2 @@
+__author__="nexo"
+__date__ ="$17/10/2012 06:23:15 PM$" \ No newline at end of file
diff --git a/src/data/__init__.pyo b/src/data/__init__.pyo
new file mode 100644
index 0000000..7d41e79
--- /dev/null
+++ b/src/data/__init__.pyo
Binary files differ
diff --git a/src/data/ciudad.py b/src/data/ciudad.py
new file mode 100644
index 0000000..f9f5cf7
--- /dev/null
+++ b/src/data/ciudad.py
@@ -0,0 +1,11 @@
+# -*- coding: utf-8 -*-
+
+__author__="rodripf"
+__date__ ="$31/10/2012 12:43:47 PM$"
+
+from lugar import Lugar
+
+class Ciudad(Lugar):
+ def cargarDatos(self):
+ self.nombre = "ciudad"
+ self.cosasPermitidas = [("camisa", 2), ("championes", 1), ("jeans", 1), ("vestido", 1), ("zapatos", 1)]
diff --git a/src/data/ciudad.pyo b/src/data/ciudad.pyo
new file mode 100644
index 0000000..87d1e45
--- /dev/null
+++ b/src/data/ciudad.pyo
Binary files differ
diff --git a/src/data/lugar.py b/src/data/lugar.py
new file mode 100644
index 0000000..b394344
--- /dev/null
+++ b/src/data/lugar.py
@@ -0,0 +1,43 @@
+__author__="nexo"
+__date__ ="$17/10/2012 06:24:01 PM$"
+
+import pygame
+from pygame.locals import *
+pygame.init()
+
+import os
+
+class Lugar():
+ def __init__(self, surfDest, posDest):
+ self.nombre = None
+ self.cosasPermitidas = []
+
+ self.cargarDatos()
+
+ self.img = pygame.image.load(os.path.join("lugares", self.nombre + ".jpg")).convert()
+
+ self.posDest = posDest
+ self.surfDest = surfDest
+
+ surfDest.blit(self.img, posDest)
+
+
+ def repaint(self):
+ self.surfDest.blit(self.img, self.posDest)
+
+ def cargarDatos(self):
+ """Abstracta"""
+ pass
+
+
+ def chequear(self, objeto):
+ """Chequea si es correcto un objeto corresponde al lugar"""
+ for o in self.cosasPermitidas:
+ if o[0] == objeto:
+ return True
+
+ return False
+
+
+if __name__ == "__main__":
+ print "Hello World"
diff --git a/src/data/lugar.pyo b/src/data/lugar.pyo
new file mode 100644
index 0000000..c6f52a3
--- /dev/null
+++ b/src/data/lugar.pyo
Binary files differ
diff --git a/src/data/lugar.py~ b/src/data/lugar.py~
new file mode 100644
index 0000000..26f9730
--- /dev/null
+++ b/src/data/lugar.py~
@@ -0,0 +1,26 @@
+__author__="nexo"
+__date__ ="$17/10/2012 06:24:01 PM$"
+
+import pygame
+from pygame.locals import *
+pygame.init()
+
+import os
+
+class Lugar():
+ def __init__(self, surfDest, posDest):
+ self.nombre = None
+ self.cosasPermitidas = []
+
+ self.cargarDatos()
+
+ img = pygame.image.load(os.path.join("lugares", self.nombre + ".jpg")).convert()
+ surfDest.blit(img, posDest)
+
+ def cargarDatos(self):
+ """Abstracta"""
+ pass
+
+
+if __name__ == "__main__":
+ print "Hello World"
diff --git a/src/data/nieve.py b/src/data/nieve.py
new file mode 100644
index 0000000..0821195
--- /dev/null
+++ b/src/data/nieve.py
@@ -0,0 +1,8 @@
+# -*- coding: utf-8 -*-
+
+from lugar import Lugar
+
+class Nieve(Lugar):
+ def cargarDatos(self):
+ self.nombre = "nieve"
+ self.cosasPermitidas = [("gorrolana", 2), ("bufanda", 1), ("guantes", 1), ("campera", 1), ("buzo", 2), ("orejeras", 2), ("paraguas", 2)] \ No newline at end of file
diff --git a/src/data/nieve.pyo b/src/data/nieve.pyo
new file mode 100644
index 0000000..301be00
--- /dev/null
+++ b/src/data/nieve.pyo
Binary files differ
diff --git a/src/data/playa.py b/src/data/playa.py
new file mode 100644
index 0000000..2962e41
--- /dev/null
+++ b/src/data/playa.py
@@ -0,0 +1,15 @@
+# To change this template, choose Tools | Templates
+# and open the template in the editor.
+
+__author__="nexo"
+__date__ ="$17/10/2012 06:32:45 PM$"
+
+from lugar import Lugar
+
+class Playa(Lugar):
+ def cargarDatos(self):
+ self.nombre = "playa"
+ self.cosasPermitidas = [("chancletas", 2), ("gorrosol", 1), ("short", 1), ("biquini", 1), ("lentes", 2), ("sombrero", 3)]
+
+if __name__ == "__main__":
+ print "Hello World"
diff --git a/src/data/playa.pyo b/src/data/playa.pyo
new file mode 100644
index 0000000..f5090b5
--- /dev/null
+++ b/src/data/playa.pyo
Binary files differ