def __init__(self, game, attacker, playersToChoose):
        GameScene.__init__(self, game)

        self.attacker = attacker
        self.playersToChoose = playersToChoose

        print("on this scene choose from one of players {}".format(playersToChoose))
示例#2
0
    def __init__(self, game):
        GameScene.__init__(self, game)

        self.superFighter = game.superFighterCard.superFighter
        self.player = game.CurrentPlayer()

        if game.lastDice == 0:
            self.SwitchToPreviousScene()
示例#3
0
	def __init__(self, game, attacker, defender):
		GameScene.__init__(self, game)

		self.attacker = attacker
		self.defender = defender

		if self.attacker.stamina <= 1 and self.defender.stamina <= 1:
			messageLines = ["You both do not have enough",
			                "condition to fight.",
			                "defender lost 15 health"]

			self.displayDialog(messageLines)
			self.handleBothDoNotHaveConditionCase()
		else:
			from Scenes.PlayerFightRollAndChooseScreen import PlayerFightRollAndChooseScreen

			self.SwitchToScene(PlayerFightRollAndChooseScreen(self.game, self.attacker, self.defender))
	def __init__(self, game):
		GameScene.__init__(self, game)

		superfightsound = pygame.mixer.Sound("Sounds/StartFight.ogg")
		pygame.mixer.Sound.play(superfightsound)

		voicefightsound = pygame.mixer.Sound("Sounds/VoiceFight.ogg")
		pygame.mixer.Sound.play(voicefightsound)

		player = self.game.CurrentPlayer()
		
		if self.game.superFighterCard is None:
			from Scenes.SelectDefenceScene import SelectDefenceScene

			self.dieRoll()

			superfightsound = pygame.mixer.Sound("Sounds/StartFight.ogg")
			pygame.mixer.Sound.play(superfightsound)

			self.game.superFighterCard = self.game.PickSuperFighterCard()

			super_fighter = self.game.superFighterCard.superFighter

		self.cardRect = None
		if not self.canPlayerDefend(player):
			messageLines = ["Your condition is not good for fight",
			                "you can't fight",
			                super_fighter.name,
			                "will do {} damage to you".format(super_fighter.damage[self.game.lastDice - 1])]

			self.displayDialog(messageLines)
			self.handlePlayerCantFightCase()
		elif player.stamina <= 1:
			messageLines = ["Your condition is not good to defend",
			                "you can't fight",
			                super_fighter.name,
			                "will do {} damage to you".format(super_fighter.damage[self.game.lastDice - 1])]
			self.displayDialog(messageLines)
			self.handlePlayerCantFightCase()
		else:
			messageLines = ["You are now on a Fight tile",
			                "and you have to fight with",
			                super_fighter.name]

			self.displayDialog(messageLines)
			self.switchToDefenseSelectionScene()
示例#5
0
	def __init__(self, game):
		GameScene.__init__(self, game)
示例#6
0
	def __init__(self, game, player):
		GameScene.__init__(self, game)

		self.player = player
示例#7
0
	def __init__(self, game, winner):
		pygame.mixer.music.load("Sounds/Survivor.ogg")
		pygame.mixer.music.play()

		GameScene.__init__(self, game)
		self.winner = winner