import GetTheTreasureConditions from 'roguelike/app/conditions/GetTheTreasureConditions.js'
GetTheTreasureConditions
Extends:
GameConditions → GetTheTreasureConditions
Victory and defeat conditions for a steal-the-treasure game
Method Summary
Public Methods | ||
public |
hasPlayerWon(dungeon: Dungeon): Boolean Tells if the player has won by stealing the treasure |
Inherited Summary
From class GameConditions | ||
public |
hasPlayerLost(dungeon: Dungeon): boolean Tells if the player has lost the game |
|
public |
hasPlayerWon(dungeon: Dungeon): boolean Tells if the player has won the game |
Public Methods
public hasPlayerWon(dungeon: Dungeon): Boolean source
Tells if the player has won by stealing the treasure
Override:
GameConditions#hasPlayerWonParams:
Name | Type | Attribute | Description |
dungeon | Dungeon | The dungeon being played |
Return:
Boolean |
|