pokemon-showdown-client/js
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
..
lib Add Preact dependency 2018-10-16 14:53:27 -05:00
client-battle-tooltips.js Implement new battle-text-parser 2018-11-15 18:52:53 -06:00
client-battle.js Implement new battle-text-parser 2018-11-15 18:52:53 -06:00
client-chat-tournament.js Split battle-log.ts off from battle-dex.ts 2018-11-15 18:52:53 -06:00
client-chat.js Split battle-log.ts off from battle-dex.ts 2018-11-15 18:52:53 -06:00
client-ladder.js Split battle-log.ts off from battle-dex.ts 2018-11-15 18:52:53 -06:00
client-mainmenu.js Implement new battle-text-parser 2018-11-15 18:52:53 -06:00
client-rooms.js Split battle-log.ts off from battle-dex.ts 2018-11-15 18:52:53 -06:00
client-teambuilder.js Split battle-log.ts off from battle-dex.ts 2018-11-15 18:52:53 -06:00
client-topbar.js Split battle-log.ts off from battle-dex.ts 2018-11-15 18:52:53 -06:00
client.js Split battle-log.ts off from battle-dex.ts 2018-11-15 18:52:53 -06:00
replay-embed.js Split battle-log.ts off from battle-dex.ts 2018-11-15 18:52:53 -06:00
search.js Split battle-log.ts off from battle-dex.ts 2018-11-15 18:52:53 -06:00
storage.js Split battle-log.ts off from battle-dex.ts 2018-11-15 18:52:53 -06:00