Reference Source Test
public class | source

Equipment

Direct Subclass:

Armour, Boots, Pendant, Ring, Weapon

Things that can be equipped on a Character The children of these classes are responsible for clear and concise ways of organizing stats of weapons in the client side. This does not dictate the damage, defense or bonus stats, it's just for looks.

Constructor Summary

Public Constructor
public

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

Default constructor

Member Summary

Public Members
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

Method Summary

Public Methods
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

Params:

NameTypeAttributeDescription
name String

name of the piece of equipment

count Number

how many times it can be used

ability String

abilities on the equipment

abilityLevel Number

level of the ability

Public Members

public ability: String source

Ability of the equipment

public abilityLevel: Number source

The ability level on the equipment

public count: Number source

How many times it can be used

public name: String source

Name of the equipment

Public Methods

public exists(): String source

Check if there is a name on this item

Return:

String

name of the equipment

public getAbility(): String source

Return the ability of the equipment

Return:

String

ability

public getAbilityLevel(): Number source

Get the ability level

Return:

Number

ability level

public getCount(): Number source

Return the number of times equipment has been used

Return:

Number

equipment usage count

public getName(): String source

Return the name of the equipment

Return:

String

name

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

Update the equipment stats

Params:

NameTypeAttributeDescription
name String

name of the eqiopment

count Number

usage count

ability String

ability of the equipment

abilityLevel Number

level of the ability