pokemon-showdown-client/src
Guangcong Luo f6c03e0370 Implement new battle-text-parser
All battle text messages have been moved out of `src/battle.ts` and
into its own file `data/text.js`.

Code for handling this is in the new files `src/battle-log.ts` and
`src/battle-text-parser.ts`.

`data/text.js` is now extremely self-contained, and nearly ready for
translation support!

This is a significant modernization of battle.ts. In addition to moving
messages out:

Functions for getting names (`pokemon.getLowerName()` etc) have been
removed.

`battle.minorQueue` has been removed. Minor lines are now processed
directly on the main queue, with a new `battle.waitForAnimations`
flag to decide whether or not the main queue should wait for animations
to finish before moving on to the next line.

`battle.waitForResult()` and `battle.endPrevAction()` have been
removed. These confusingly-named functions closed the messagebar (and
flush the minor queue). They've been replaced with
`scene.maybeCloseMessagebar()`.

`pokemon.markMove()` and `pokemon.markAbility()` have been renamed
`pokemon.rememberMove()` and `pokemon.rememberAbility()`.
2018-11-15 18:52:53 -06:00
..
battle-animations-moves.ts Implement new battle-text-parser 2018-11-15 18:52:53 -06:00
battle-animations.ts Implement new battle-text-parser 2018-11-15 18:52:53 -06:00
battle-dex-data.ts Implement new battle-text-parser 2018-11-15 18:52:53 -06:00
battle-dex.ts Split battle-log.ts off from battle-dex.ts 2018-11-15 18:52:53 -06:00
battle-log-misc.js Split battle-log.ts off from battle-dex.ts 2018-11-15 18:52:53 -06:00
battle-log.ts Implement new battle-text-parser 2018-11-15 18:52:53 -06:00
battle-scene-stub.ts Implement new battle-text-parser 2018-11-15 18:52:53 -06:00
battle-text-parser.ts Implement new battle-text-parser 2018-11-15 18:52:53 -06:00
battle.ts Implement new battle-text-parser 2018-11-15 18:52:53 -06:00
globals.d.ts Split battle-log.ts off from battle-dex.ts 2018-11-15 18:52:53 -06:00