Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/api/Game.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/Game.py')
-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