forked from pagefaultgames/pokerogue
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
656 additions
and
276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.