From 7c3d166b90cb683d450010266ff021660280bc64 Mon Sep 17 00:00:00 2001 From: Alan Aguiar Date: Tue, 01 Oct 2013 20:44:50 +0000 Subject: CGAme saves the current partida --- (limited to 'src/api') 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 -- cgit v0.9.1