mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-04-29 21:13:55 +01:00
26 lines
638 B
TypeScript
26 lines
638 B
TypeScript
import Move from "./data/move";
|
|
|
|
export enum BattleSceneEventType {
|
|
MOVE_USED = "onMoveUsed"
|
|
}
|
|
|
|
/**
|
|
* Container class for `onMoveUsed` events
|
|
* @extends Event
|
|
*/
|
|
export class MoveUsedEvent extends Event {
|
|
/** The ID of the {@linkcode Pokemon} that used the {@linkcode Move} */
|
|
public userId: number;
|
|
/** The {@linkcode Move} used */
|
|
public move: Move;
|
|
/** The amount of PP used on the {@linkcode Move} this turn */
|
|
public ppUsed: number;
|
|
constructor(userId: number, move: Move, ppUsed: number) {
|
|
super(BattleSceneEventType.MOVE_USED);
|
|
|
|
this.userId = userId;
|
|
this.move = move;
|
|
this.ppUsed = ppUsed;
|
|
}
|
|
}
|