Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/api')
-rw-r--r--src/api/Button.py4
-rw-r--r--src/api/Game.py13
-rw-r--r--src/api/GameState.py6
-rw-r--r--src/api/Mouse.py2
-rw-r--r--src/api/PartidasMan.py4
5 files changed, 16 insertions, 13 deletions
diff --git a/src/api/Button.py b/src/api/Button.py
index c1dba9e..97fd6c6 100644
--- a/src/api/Button.py
+++ b/src/api/Button.py
@@ -42,7 +42,7 @@ class CButton(CLabel):
if CMouse().firstPress():
if self.rect.collidepoint(CMouse().getPos()):
- print("first press in button")
+ #print "first press in button"
self.mactive = True
#check for mouse release
@@ -50,5 +50,5 @@ class CButton(CLabel):
if CMouse().release():
self.mactive = False
if self.rect.collidepoint(CMouse().getPos()):
- print("release in button")
+ #print "release in button"
self.mclicked = True
diff --git a/src/api/Game.py b/src/api/Game.py
index 7bd8611..7aa7ce2 100644
--- a/src/api/Game.py
+++ b/src/api/Game.py
@@ -46,7 +46,8 @@ class CGame(object):
if (self.mState != None):
self.mState.destroy()
self.mState = None
- print gc.collect(), " deleted objects"
+ gc.collect()
+ #print gc.collect(), " deleted objects"
self.mState = aState
self.mState.init()
@@ -70,7 +71,7 @@ class CGame(object):
print "destroy Game"
def init(self):
- print "init pygame..."
+ print "initing game..."
pygame.init()
#pygame.display.init()
#pygame.font.init()
@@ -104,7 +105,7 @@ class CGame(object):
self.mCurrentPartida = 1
def gameLoop(self):
- print "start game loop here"
+ print "starting game.."
while not self.mQuit:
while gtk.events_pending():
@@ -152,15 +153,15 @@ class CGame(object):
self.mAllSprites.remove(aSprite)
def setCharacter(self, par, name):
- print self.mPartidaDict.keys()
+ #print self.mPartidaDict.keys()
self.mPartidaDict[par].setCharacter(name)
- print 'Personaje ', name, ' asignado a partida ', par
+ #print 'Personaje ', name, ' asignado a partida ', par
def getCharacter(self, par):
return self.mPartidaDict[par].getCharacter()
def getPartida(self, n):
- print self.mPartidaDict.keys()
+ #print self.mPartidaDict.keys()
if self.mPartidaDict.has_key(n):
return self.mPartidaDict[n]
else:
diff --git a/src/api/GameState.py b/src/api/GameState.py
index ffba526..d425820 100644
--- a/src/api/GameState.py
+++ b/src/api/GameState.py
@@ -3,11 +3,13 @@
class CGameState(object):
def init(self):
- print "CGameState init"
+ pass
+ #print "CGameState init"
def update(self):
pass
#print "CGameState update"
def destroy(self):
- print "CGameState destroy"
+ pass
+ #print "CGameState destroy"
diff --git a/src/api/Mouse.py b/src/api/Mouse.py
index ba34eb6..0db50d4 100644
--- a/src/api/Mouse.py
+++ b/src/api/Mouse.py
@@ -59,4 +59,4 @@ class CMouse(object):
def destroy(self):
self.mInstance = None
- print "destroy"
+ #print "destroy"
diff --git a/src/api/PartidasMan.py b/src/api/PartidasMan.py
index 68e3356..2404548 100644
--- a/src/api/PartidasMan.py
+++ b/src/api/PartidasMan.py
@@ -48,7 +48,7 @@ def getPartidasFromFile():
l = f.readline()
aux = l.strip('\n')
aux = str(aux)
- print 'linea', aux
+ #print 'linea', aux
if not((aux == 'None') or (aux == '')):
p = Partida(aux)
@@ -97,4 +97,4 @@ def setPartidasToFile(par):
else:
f.write('None\n')
f.close()
- print 'Partidas salvadas'
+ print 'partidas guardadas'