def __init__(self):
     super(_AppLoader, self).__init__()
     self.__space = spaces.WaitingSpace()
     self.__appsStates = {}
     self.__appFactory = _EmptyFactory()
     self.__observer = GameplayStatesObserver(self)
     self.onGUISpaceLeft = Event.Event()
     self.onGUISpaceEntered = Event.Event()
 def switchAccountEntity(self):
     self.changeSpace(spaces.WaitingSpace())
     self.__appFactory.destroyLobby()
     self.__appFactory.createLobby()
 def onEnterState(self, event=None):
     self._proxy.changeSpace(spaces.WaitingSpace())
Beispiel #4
0
 def destroyBattle(self):
     self.changeSpace(spaces.WaitingSpace())
     self.__appFactory.destroyBattle()