import AbilityConsumable from 'roguelike/app/entities/consumables/AbilityConsumable.js'
AbilityConsumable
Extends:
Constructor Summary
Public Constructor | ||
public |
constructor(ability: *, name: *) |
Method Summary
Public Methods | ||
public |
|
|
public |
getName(): * |
|
public |
getRange(): * |
|
public |
getUseMessage(dungeon: *, creature: *): string |
|
public |
isTargetCreature(): * |
|
public |
isTargetted(): * |
|
public |
toString(): * |
|
public |
use(dungeon: *, creature: *, optionalTargetTile: *) |
Inherited Summary
From class Entity | ||
public |
|
|
public |
getId(): * |
|
public |
getName(): * |
|
public |
|
|
public |
toString(): * |
From class Item | ||
public |
|
From class Consumable | ||
public |
|
|
public |
|
|
public |
|
|
public |
use(dungeon: *, creature: *) |
Public Constructors
public constructor(ability: *, name: *) source
Override:
Entity#constructorParams:
Name | Type | Attribute | Description |
ability | * | ||
name | * |
Public Methods
public getUseMessage(dungeon: *, creature: *): string source
Params:
Name | Type | Attribute | Description |
dungeon | * | ||
creature | * |
public use(dungeon: *, creature: *, optionalTargetTile: *) source
Override:
Consumable#useParams:
Name | Type | Attribute | Description |
dungeon | * | ||
creature | * | ||
optionalTargetTile | * |