Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/api
diff options
context:
space:
mode:
authorAlan Aguiar <alanjas@hotmail.com>2013-10-01 20:44:50 (GMT)
committer Alan Aguiar <alanjas@hotmail.com>2013-10-01 20:44:50 (GMT)
commit7c3d166b90cb683d450010266ff021660280bc64 (patch)
tree642617a63ad8fc572c50e91b33711d0304449772 /src/api
parentadb46f0522e308fdf9ec155111f1c6208bc0a8ab (diff)
CGAme saves the current partida
Diffstat (limited to 'src/api')
-rw-r--r--src/api/Game.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/api/Game.py b/src/api/Game.py
index 609311e..7bd8611 100644
--- a/src/api/Game.py
+++ b/src/api/Game.py
@@ -101,6 +101,7 @@ class CGame(object):
self.mQuit = False
self.mPartidaDict = getPartidasFromFile()
+ self.mCurrentPartida = 1
def gameLoop(self):
print "start game loop here"
@@ -164,6 +165,12 @@ class CGame(object):
return self.mPartidaDict[n]
else:
return None
+
+ def getCurrentPartida(self):
+ return self.mCurrentPartida
+
+ def setCurrentPartida(self, n):
+ self.mCurrentPartida = n
def setPartida(self, n, p):
self.mPartidaDict[n] = p