PKHeX/PKHeX.WinForms
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
..
Controls Refactor encounter matching 2017-05-27 21:17:57 -07:00
MainWindow Refactor main form into smaller pieces 2017-05-22 21:55:12 -07:00
Misc Missing hash from gen 6 qr injection url 2017-05-15 17:07:07 -03:00
Properties Converted PKHeX.Core to .Net Standard 2017-05-11 23:34:18 -05:00
Resources Folder List enhancements 2017-05-17 21:25:48 -04:00
Subforms Refactor encounter matching 2017-05-27 21:17:57 -07:00
Util Refactor main form into smaller pieces 2017-05-22 21:55:12 -07:00
App.config Add setting for unset changes notification 2017-03-22 18:02:05 -07:00
icon.ico Split winforms to separate project 2017-01-07 23:54:09 -08:00
packages.config Add missing package for MemeCrypto in .Net Framework 2017-05-12 12:16:11 -05:00
PKHeX.WinForms.csproj add EventFlags resources BW 2017-05-26 19:17:28 +09:00
Program.cs Tabs -> Spaces & Typo 2017-02-13 19:55:02 +01:00
Settings.cs Split winforms to separate project 2017-01-07 23:54:09 -08:00