Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a Territory from the API

Hierarchy

  • Territory

Index

Constructors

Properties

acquired: Date

The time the territory was acquired

acquiredTimestamp: number

The time the territory was acquired as a unix timestamp

attacker: null | string

The attacker of the territory

This field is currently unused.
connections: Territory[]

The territories connected to the territory

guild: null | string

The name of the guild holding the territory; null if no guild owns the territory

readonly
location: SquareRegion

The location and dimensions of the territory

resources: Resources

The amount of resources produced by the territory at base production

territory: string

The name of the territory

Methods

  • Fetches the guild stats of the owner guild

    This method causes API requests.

    Parameters

    • Optional options: GuildRequestOptions

      The options for the request; the guild field has no effect

    Returns Promise<Guild>

Generated using TypeDoc