Beispiel #1
0
  def __init__(self, id, controller):
    self.id = int(id)
    self.controller = controller
    DefaultGameWorld.__init__(self)
    self.scribe = Scribe(self.logPath())
    if( self.logJson ):
      self.jsonLogger = jsonLogger.JsonLogger(self.logPath())
      self.jsonAnimations = []
      self.dictLog = dict(gameName = "Pharaoh", turns = [])
    self.addPlayer(self.scribe, "spectator")

    self.grid = []
    self.mapWidth = self.mapWidth
    self.mapHeight = self.mapHeight
    self.turnNumber = 0
    self.roundTurnNumber = 0
    self.maxThieves = self.maxThieves
    self.maxTraps = self.maxTraps
    self.playerID = -1
    self.gameNumber = id
    self.roundNumber = 0
    self.scarabsForTraps = self.scarabsForTraps
    self.scarabsForThieves = self.scarabsForThieves
    self.roundsToWin = self.roundsToWin
    self.roundTurnLimit = self.roundTurnLimit
    self.numberOfSarcophagi = self.numberOfSarcophagi
Beispiel #2
0
    def __init__(self, id, controller):
        self.id = int(id)
        self.controller = controller
        DefaultGameWorld.__init__(self)
        self.scribe = Scribe(self.logPath())
        if (self.logJson):
            self.jsonLogger = jsonLogger.JsonLogger(self.logPath())
            self.jsonAnimations = []
            self.dictLog = dict(gameName="Mars", turns=[])
        self.addPlayer(self.scribe, "spectator")

        self.mapWidth = self.mapWidth
        self.mapHeight = self.mapHeight
        self.waterDamage = self.waterDamage
        self.turnNumber = -1
        self.maxUnits = self.maxUnits
        self.playerID = -1
        self.gameNumber = id
        self.turnLimit = self.turnLimit
        self.maxSiege = self.maxSiege
        self.oxygenRate = self.oxygenRate
        self.maxOxygen = self.maxOxygen
        self.depositionRate = self.depositionRate

        self.startingOxygen = self.maxOxygen

        self.ice = []
Beispiel #3
0
    def __init__(self, id, controller):
        self.id = int(id)
        self.controller = controller
        DefaultGameWorld.__init__(self)
        self.scribe = Scribe(self.logPath())
        if (self.logJson):
            self.jsonLogger = jsonLogger.JsonLogger(self.logPath())
            self.jsonAnimations = []
            self.dictLog = dict(gameName="Plants", turns=[])
        self.addPlayer(self.scribe, "spectator")

        self.turnNumber = -1
        self.playerID = -1
        self.gameNumber = id

        self.mapWidth = self.mapWidth
        self.mapHeight = self.mapHeight
        self.turnNumber = self.turnNumber
        self.maxPlants = self.maxPlants
        self.playerID = self.playerID
        self.bumbleweedSpeed = self.bumbleweedSpeed
        self.poolDamage = self.poolDamage
        self.poolBuff = self.poolBuff
        self.titanDebuff = self.titanDebuff
        self.sporeRate = self.sporeRate
        self.maxSpores = self.maxSpores

        self.plantsByPosition = dict()
Beispiel #4
0
 def __init__(self, id, controller):
   self.id = int(id)
   self.controller = controller
   DefaultGameWorld.__init__(self)
   self.scribe = Scribe(self.logPath())
   if( self.logJson ):
     self.jsonLogger = jsonLogger.JsonLogger(self.logPath())
     self.jsonAnimations = []
     self.dictLog = dict(gameName = "${gameName}", turns = [])
   self.addPlayer(self.scribe, "spectator")
Beispiel #5
0
    def __init__(self, id, controller):
        self.id = int(id)
        self.controller = controller
        DefaultGameWorld.__init__(self)
        self.scribe = Scribe(self.logPath())
        if (self.logJson):
            self.jsonLogger = jsonLogger.JsonLogger(self.logPath())
            self.jsonAnimations = []
            self.dictLog = dict(gameName="Droids", turns=[])
        self.addPlayer(self.scribe, "spectator")

        self.turnNumber = -1
        self.playerID = -1
        self.gameNumber = id

        self.hangartiles = dict()
        self.grid = []

        self.mapWidth = self.mapWidth
        self.mapHeight = self.mapHeight
        self.maxDroids = self.maxDroids
        self.scrapRate = self.scrapRate
        self.maxScrap = self.maxScrap
        self.dropTime = self.dropTime