Class: SystemSkill

SystemSkill

A skill of the game

new SystemSkill (json)

Name Type Description
json Object optional Json object describing the skill

Extends

Methods

read (json) overrides

Read the JSON associated to the skill
Name Type Description
json Object Json object describing the skill

getCostString ()string

Get the string representation of costs
Returns:
Type Description
string

useCommand ()boolean inherited overrides

Use the command if possible
Returns:
Type Description
boolean

use ()boolean inherited overrides

Execute the effects and costs
Returns:
Type Description
boolean
Use the costs

isPossible ()boolean inherited overrides

Check if the costs are possible
Returns:
Type Description
boolean

getTargetKindString ()string inherited overrides

Get the target kind string
Returns:
Type Description
string

name ()string inherited overrides

Get the name according to current lang
Returns:
Type Description
string

getCommand () inherited overrides

Update lang according to a command list and iterator