Search results

Types

Classes
Interfaces
Enums
Functions
Type aliases
Constants

Members

Properties
Methods
Getters
Setters
Enum members
Show privates

Other

In this module only

Interface WinCondition

Defined in faction

The win condition can either be exclusiveenum WinConditionTypes.EXCLUSIVEstructures/role/WinConditionTypes or inclusiveenum WinConditionTypes.INCLUSIVEstructures/role/WinConditionTypes.

  • If the win condition is exclusive, then no other roles / factions with an exclusive win condition can win. Exclusive win conditions aren't even called if there is more than 1 win condition in the game which is exclusive.
  • Inclusive win conditions are checked only when there is 1 exclusive win condition and that win condition returns a list of players and not false or undefined. Every inclusive win condition must return a list of players which win with the rest of the players.

Every faction's and role's win condition gets executed at the end of every phase.

Properties

type: WinConditionTypesenum WinConditionTypesstructures/role/WinConditionTypes
condition: (game: Gameclass GameGame) => Arrayexternal Array<Playerclass Playerstructures/player/Player> | undefined | false