Exemplo n.º 1
0
 def exit(self):
     from pig.gamedata import get_gamedata
     PigDirector.paused = False
     PigDirector.project_started = False
     if self.restart:
         gamedata = get_gamedata()
         PigDirector.set_scene( gamedata.start_sceneclass)
Exemplo n.º 2
0
 def exit(self):
     from pig.gamedata import get_gamedata
     PigDirector.paused = False
     PigDirector.project_started = False
     if self.restart:
         gamedata = get_gamedata()
         PigDirector.set_scene(gamedata.start_sceneclass)
Exemplo n.º 3
0
 def _get_shell_info(self):
     "_get_shell_info()->info for pug's open_shell command"
     rootObject = self
     rootLabel = self._get_shell_name()
     locals = {}
     import pig.actions
     for action in dir(pig.actions):
         if action[0] != "_":
             locals[action] = getattr(pig.actions, action)
     locals['_gamedata'] = get_gamedata()
     locals[rootLabel] = self
     return dict(rootObject=rootObject, rootLabel=rootLabel, locals=locals)
Exemplo n.º 4
0
 def _get_shell_info(self):
     "_get_shell_info()->info for pug's open_shell command"
     rootObject = self
     rootLabel = self._get_shell_name()
     locals={}
     import pig.actions
     for action in dir(pig.actions):
         if action[0] != "_":
             locals[action]=getattr(pig.actions,action)
     locals['_gamedata'] = get_gamedata()
     locals[rootLabel] = self
     return dict(rootObject=rootObject,rootLabel=rootLabel,locals=locals)