Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Unit<Power, MilitaryBranch>

Unit of Diplomacy

Type parameters

  • Power

  • MilitaryBranch

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Unit(militaryBranch: MilitaryBranch, location: Location<Power, MilitaryBranch>, power: Power): Unit
  • Parameters

    • militaryBranch: MilitaryBranch

      The military branch of this unit.

    • location: Location<Power, MilitaryBranch>

      The location where this unit is in.

    • power: Power

      The power that has this unit.

    Returns Unit

Properties

location

location: Location<Power, MilitaryBranch>

The location where this unit is in.

militaryBranch

militaryBranch: MilitaryBranch

The military branch of this unit.

power

power: Power

The power that has this unit.

Methods

toString

  • toString(): string

Generated using TypeDoc