def _update(self): State._update(self) if(not self.fight_ended and (self.character.isDead() or self.dragon.isDead()) ): self.fight_ended = True self.enterResolutionMode() if(not self.character.isDead()): self.character.level += 1 Consts.MONEY += 150 #buttons if(self.is_in_resolution): self.continue_button._update() else: self.attack_button._update() self.defense_button._update() self.spell_button._update() self.charge_button._update() self.run_button._update() #characters self.character.update() self.dragon.update() return self.next_state
def _update(self): State._update(self) #update buttons self.play_button._update() self.buy_sword_button._update() self.buy_helmet_button._update() self.buy_armor_button._update() self.buy_spell_button._update() return self.next_state
def _update(self): State._update(self) self.continue_button._update() return self.next_state