GameConditions
Direct Subclass:
Abstract base class for a pair of victory and defeat conditions. Used for determining if a given game state represents a win or loss (or neither) for the player. GameConditions should be stateless.
Method Summary
Public Methods | ||
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 |