Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IUnit

A unit represent an object placed in the board. Refers both to units that move and to buildings (speed==0).

Hierarchy

Index

Properties

Optional custom

custom: any

so users can include additional information. They implement almost everything and probably can put more data for easy edition

Optional description

description: string

Optional extraDescriptionProperties

extraDescriptionProperties: object[]

if implemetators want to show extra properties when user select units in the UnitSelection panel he ca add them here. The value is html string

Optional id

id: string

killCount

killCount: number

Optional moved

moved: boolean

internal - marks if this unit has already moved in this turn

Optional name

name: string

playerId

playerId: string

state

current unit state - based on unittype.properties multiplied by level and spells, etc

Optional timestamp

timestamp: number

type

type: IUnitType

Generated using TypeDoc