Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Location<Power, MilitaryBranch>

Location in Diplomacy map. Each province is expected to have 1 location at least.

Type parameters

  • Power

  • MilitaryBranch

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Location(name: Name, province: Province<Power>, militaryBranches: Set<MilitaryBranch> | Array<MilitaryBranch>): Location
  • Parameters

    • name: Name

      The name of this location. It is usually same as the name of the province

    • province: Province<Power>

      The province that this location is in.

    • militaryBranches: Set<MilitaryBranch> | Array<MilitaryBranch>

      The set of military branches that can enter this location.

    Returns Location

Properties

militaryBranches

militaryBranches: Set<MilitaryBranch>

The set of military branches that can enter this location.

name

name: Name

The name of this location. It is usually same as the name of the province

province

province: Province<Power>

The province that this location is in.

Methods

toString

  • toString(): string

Generated using TypeDoc