PKHeX/PKHeX.WinForms/Subforms/Save Editors/Gen6
Kurt 858aa50689 Refactor encounter matching
exercise in deferred execution/state machine, only calculate possible
matches until a sufficiently valid match is obtained. Previous setup
would try to calculate the 'best match' and had band-aid workarounds in
cases where a subsequent check may determine it to be a false match.

There's still more ways to improve speed:
- precalculate relationships for Encounter Slots rather than iterating
over every area
- yielding individual slots instead of an entire area
- group non-egg wondercards by ID in a dict/hashtable for faster
retrieval

reworked some internals:
- EncounterMatch is always an IEncounterable instead of an object, for
easy pattern matching.
- Splitbreed checking is done per encounter and is stored in the
EncounterEgg result
- Encounter validation uses Encounter/Move/RelearnMove/Evolution to
whittle to the final encounter.

As a part of the encounter matching, a lazy peek is used to check if an
invalid encounter should be retained instead of discarded; if another
encounter has not been checked, it'll stop the invalid checks and move
on. If it is the last encounter, no other valid encounters exist so it
will keep the parse for the invalid encounter.

If no encounters are yielded, then there is no encountermatch. An
EncounterInvalid is created to store basic details, and the parse is
carried out.

Breaks some legality checking features for flagging invalid moves in
more detail, but those can be re-added in a separate check (if
splitbreed & any move invalid -> check for other split moves).

Should now be easier to follow the flow & maintain 😄
2017-05-27 21:17:57 -07:00
..
SAV_BerryFieldXY.cs Refactor main form into smaller pieces 2017-05-22 21:55:12 -07:00
SAV_BerryFieldXY.Designer.cs Split winforms to separate project 2017-01-07 23:54:09 -08:00
SAV_BerryFieldXY.resx Split winforms to separate project 2017-01-07 23:54:09 -08:00
SAV_BoxLayout.cs Fix HGSS wallpaper get/set & editing 2017-05-23 21:38:15 -07:00
SAV_BoxLayout.Designer.cs Split winforms to separate project 2017-01-07 23:54:09 -08:00
SAV_BoxLayout.resx Split winforms to separate project 2017-01-07 23:54:09 -08:00
SAV_HallOfFame.cs Refactor main form into smaller pieces 2017-05-22 21:55:12 -07:00
SAV_HallOfFame.Designer.cs Find replace is bad 2017-01-08 15:27:00 -08:00
SAV_HallOfFame.resx Split winforms to separate project 2017-01-07 23:54:09 -08:00
SAV_Link6.cs Refactor main form into smaller pieces 2017-05-22 21:55:12 -07:00
SAV_Link6.Designer.cs Split winforms to separate project 2017-01-07 23:54:09 -08:00
SAV_Link6.resx Split winforms to separate project 2017-01-07 23:54:09 -08:00
SAV_OPower.cs Refactor main form into smaller pieces 2017-05-22 21:55:12 -07:00
SAV_OPower.Designer.cs Split winforms to separate project 2017-01-07 23:54:09 -08:00
SAV_OPower.resx Split winforms to separate project 2017-01-07 23:54:09 -08:00
SAV_PokeBlockORAS.cs Refactor main form into smaller pieces 2017-05-22 21:55:12 -07:00
SAV_PokeBlockORAS.Designer.cs Split winforms to separate project 2017-01-07 23:54:09 -08:00
SAV_PokeBlockORAS.resx Split winforms to separate project 2017-01-07 23:54:09 -08:00
SAV_PokedexORAS.cs Refactor main form into smaller pieces 2017-05-22 21:55:12 -07:00
SAV_PokedexORAS.Designer.cs Split winforms to separate project 2017-01-07 23:54:09 -08:00
SAV_PokedexORAS.resx Split winforms to separate project 2017-01-07 23:54:09 -08:00
SAV_PokedexXY.cs Refactor main form into smaller pieces 2017-05-22 21:55:12 -07:00
SAV_PokedexXY.Designer.cs Split winforms to separate project 2017-01-07 23:54:09 -08:00
SAV_PokedexXY.resx Split winforms to separate project 2017-01-07 23:54:09 -08:00
SAV_Pokepuff.cs Refactor main form into smaller pieces 2017-05-22 21:55:12 -07:00
SAV_Pokepuff.Designer.cs Split winforms to separate project 2017-01-07 23:54:09 -08:00
SAV_Pokepuff.resx Split winforms to separate project 2017-01-07 23:54:09 -08:00
SAV_SecretBase.cs Refactor encounter matching 2017-05-27 21:17:57 -07:00
SAV_SecretBase.Designer.cs Split winforms to separate project 2017-01-07 23:54:09 -08:00
SAV_SecretBase.resx Split winforms to separate project 2017-01-07 23:54:09 -08:00
SAV_SuperTrain.cs Refactor main form into smaller pieces 2017-05-22 21:55:12 -07:00
SAV_SuperTrain.Designer.cs Split winforms to separate project 2017-01-07 23:54:09 -08:00
SAV_SuperTrain.resx Split winforms to separate project 2017-01-07 23:54:09 -08:00
SAV_Trainer.cs Refactor main form into smaller pieces 2017-05-22 21:55:12 -07:00
SAV_Trainer.Designer.cs Add xy trainer nickname 2017-02-07 16:25:13 -08:00
SAV_Trainer.resx Split winforms to separate project 2017-01-07 23:54:09 -08:00