Home Reference Source Repository
public class | source

UseAbilityMove

Extends:

Move → UseAbilityMove

The move a Creature makes when they use an ability

Constructor Summary

Public Constructor
public

constructor(actorTile: *, index: *, x: *, y: *)

Method Summary

Public Methods
public

execute(dungeon: *, creature: *)

public
public

Gets the index of the ability to be used

public

getReasonIllegal(dungeon: *, creature: *): *

public

getX(): number | null

Gets the x value of the ability target position, if any

public

getY(): number | null

Gets the y value of the ability target position, if any

public

isSeenBy(dungeon: *, observer: *): *

Inherited Summary

From class Move
public

execute(dungeon: *, creature: *)

public

getActorX(): *

public

getActorY(): *

public
public

getReasonIllegal(dungeon: *, creature: *)

public

isSeenBy(dungeon: *, observer: *)

Public Constructors

public constructor(actorTile: *, index: *, x: *, y: *) source

Override:

Move#constructor

Params:

NameTypeAttributeDescription
actorTile *
index *
x *
y *

Public Methods

public execute(dungeon: *, creature: *) source

Override:

Move#execute

Params:

NameTypeAttributeDescription
dungeon *
creature *

public getCostMultiplier(): number source

Override:

Move#getCostMultiplier

Return:

number

public getIndex(): number source

Gets the index of the ability to be used

Return:

number

A non-negative integer. The position of the ability in the Creature's list

public getReasonIllegal(dungeon: *, creature: *): * source

Override:

Move#getReasonIllegal

Params:

NameTypeAttributeDescription
dungeon *
creature *

Return:

*

public getX(): number | null source

Gets the x value of the ability target position, if any

Return:

number | null

public getY(): number | null source

Gets the y value of the ability target position, if any

Return:

number | null

public isSeenBy(dungeon: *, observer: *): * source

Override:

Move#isSeenBy

Params:

NameTypeAttributeDescription
dungeon *
observer *

Return:

*