Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Province<Power>

Province in Diplomacy map

Type parameters

  • Power

Hierarchy

  • Province

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Province(name: Name, homeOf: Power | null, isSupplyCenter?: boolean): Province
  • Parameters

    • name: Name

      The name of this province

    • homeOf: Power | null

      The power that has this province as a home country. This is a neutral province if null is set.

    • Optional isSupplyCenter: boolean

      The flag whether this is a supply center or not.

    Returns Province

Properties

homeOf

homeOf: Power | null

The power that has this province as a home country. This is a neutral province if null is set.

isSupplyCenter

isSupplyCenter: boolean

name

name: Name

The name of this province

Methods

toString

  • toString(): string

Generated using TypeDoc