pokerogue/src/battle-scene-events.ts

26 lines
638 B
TypeScript
Raw Normal View History

2024-05-24 17:01:47 -05:00
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;
}
}