import UseAbilityMove from 'roguelike/app/entities/creatures/moves/UseAbilityMove.js'
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#constructorParams:
Name | Type | Attribute | Description |
actorTile | * | ||
index | * | ||
x | * | ||
y | * |
Public Methods
public execute(dungeon: *, creature: *) source
Override:
Move#executeParams:
Name | Type | Attribute | Description |
dungeon | * | ||
creature | * |
public getReasonIllegal(dungeon: *, creature: *): * source
Override:
Move#getReasonIllegalParams:
Name | Type | Attribute | Description |
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#isSeenByParams:
Name | Type | Attribute | Description |
dungeon | * | ||
observer | * |
Return:
* |