Reference Source Test
public class | source

Armour

Extends:

Equipment → Armour

Equipment that can be equipped on a Character

Constructor Summary

Public Constructor
public

constructor(name: String, count: Number, ability: String, abilityLevel: Number)

Default constructor

Member Summary

Public Members
public

How much defence it has

public

Name of the armor

Method Summary

Public Methods
public

Return the defense for this armor

public

setDefence(defence: Number)

Set how much defense this has

Inherited Summary

From class Equipment
public

Ability of the equipment

public

The ability level on the equipment

public

How many times it can be used

public

Name of the equipment

public

Check if there is a name on this item

public

Return the ability of the equipment

public

Get the ability level

public

Return the number of times equipment has been used

public

Return the name of the equipment

public

update(name: String, count: Number, ability: String, abilityLevel: Number)

Update the equipment stats

Public Constructors

public constructor(name: String, count: Number, ability: String, abilityLevel: Number) source

Default constructor

Override:

Equipment#constructor

Params:

NameTypeAttributeDescription
name String

Name of the equipment

count Number

How many times it can be used

ability String

The ability of this armor

abilityLevel Number

Level for this armor

Public Members

public defence: Number source

How much defence it has

public name: String source

Name of the armor

Override:

Equipment#name

Public Methods

public getDefence(): Number source

Return the defense for this armor

Return:

Number

defense level

public setDefence(defence: Number) source

Set how much defense this has

Params:

NameTypeAttributeDescription
defence Number

set the defence value