Skip to main content

Class: Achievement

Represents a Clash of Clans Achievement.

Constructors​

constructor​

• new Achievement(data)

Parameters​

NameType
dataAPIPlayerAchievement

Defined in​

struct/Achievement.ts:26

Properties​

name​

• name: string

The name of the achievement.

Defined in​

struct/Achievement.ts:6


stars​

• stars: number

The current stars achieved for the achievement.

Defined in​

struct/Achievement.ts:9


value​

• value: number

The number of X things attained for this achievement.

Defined in​

struct/Achievement.ts:12


target​

• target: number

The number of X things required to complete this achievement.

Defined in​

struct/Achievement.ts:15


info​

• info: string

Information regarding the achievement.

Defined in​

struct/Achievement.ts:18


village​

• village: "home" | "builderBase"

The village this achievement belongs to.

Defined in​

struct/Achievement.ts:21


completionInfo​

• completionInfo: null | string

Information regarding completion of the achievement.

Defined in​

struct/Achievement.ts:24

Accessors​

isHomeBase​

• get isHomeBase(): boolean

Whether achievement belongs to the home base.

Returns​

boolean

Defined in​

struct/Achievement.ts:37


isBuilderBase​

• get isBuilderBase(): boolean

Whether the achievement belongs to the builder base.

Returns​

boolean

Defined in​

struct/Achievement.ts:42


isCompleted​

• get isCompleted(): boolean

Whether the achievement is completed.

Returns​

boolean

Defined in​

struct/Achievement.ts:47