Class: Achievement
Represents a Clash of Clans Achievement.
Constructors
constructor
• new Achievement(data)
Parameters
| Name | Type |
|---|---|
data | APIPlayerAchievement |
Defined in
Properties
name
• name: string
The name of the achievement.
Defined in
stars
• stars: number
The current stars achieved for the achievement.
Defined in
value
• value: number
The number of X things attained for this achievement.
Defined in
target
• target: number
The number of X things required to complete this achievement.
Defined in
info
• info: string
Information regarding the achievement.
Defined in
village
• village: "home" | "builderBase"
The village this achievement belongs to.
Defined in
completionInfo
• completionInfo: null | string
Information regarding completion of the achievement.
Defined in
Accessors
isHomeBase
• get isHomeBase(): boolean
Whether achievement belongs to the home base.
Returns
boolean
Defined in
isBuilderBase
• get isBuilderBase(): boolean
Whether the achievement belongs to the builder base.
Returns
boolean
Defined in
isCompleted
• get isCompleted(): boolean
Whether the achievement is completed.
Returns
boolean