예제 #1
0
 def loadSavedGame(self):
     
     loadNewGame(self, "load.txt", True)  # Initialize data from file
     
     self.view = View(self)      # Initialize view
     loadGraphics(self)          # Initialize graphics
     self.view.guiMain.personView.centerOn(self.character.pViewObj); # Center on the character
   
     # Set boundaries (Hard Coded values at the mommment perhaps 
     # implement automatic bounds checking later)
     self.maxX = 1768
     self.minX = -2024
     self.maxY = 2024
     self.minY = -2024
     
     #Add overlays
     
     self.overlays['latLongOverlay'].mViewObj.setVisible(False)
     self.overlays['colorOverlay'].mViewObj.setVisible(False)
     self.overlays['legendOverlay'].mViewObj.setVisible(False)
     
     #Initial search yields first clue.
     searchLandmark(self)
     
     #Initialize frames
     initFrames(self)
예제 #2
0
    def loadDataInitial(self):
        """Initialize with heap objects"""
        
        loadData(self)
        self._initialNewGame() # Load data before init view
        self.view = View(self)      # Initialize view
        loadGraphics(self)          # Initialize graphics
        self.view.guiMain.personView.centerOn(self.character.pViewObj); # Center on the character

        # Set boundaries (Hard Coded values at the mommment perhaps 
        # implement automatic bounds checking later)
        self.maxX = 1768
        self.minX = -2024
        self.maxY = 2024
        self.minY = -2024
        
        #Add overlays
        self.overlays['latLongOverlay'].mViewObj.setVisible(False)
        self.overlays['colorOverlay'].mViewObj.setVisible(False)
        self.overlays['legendOverlay'].mViewObj.setVisible(False)
        
        #Initial search yields first clue.
        searchLandmark(self)
        
        #Initialize frames
        initFrames(self)
예제 #3
0
 def loadDataInitial(self):
     "Initialize with heap objects"
     self._temperaryLoadSystem2() # Load data before init view
     self.view = View(self)      # Initialize view
     loadGraphics(self)          # Initialize graphics
     
     #Hack to get overlays to work
     self.overlays['latLongOverlay'].mViewObj.setVisible(False)
     
     #Initial Search Yealds first clue.
     searchCity(self)