diff options
author | Griffin Smith <root@gws.fyi> | 2020-01-03T17·41-0500 |
---|---|---|
committer | Griffin Smith <root@gws.fyi> | 2020-01-03T17·41-0500 |
commit | 1b88921bc36e5da1ade5c52827d057dc2be65bc5 (patch) | |
tree | d731dffc16929213becf34105406b56906118a07 /src/Xanthous/Game/State.hs | |
parent | c4351d46ef13da5fbe2048bb3506f9549b61f437 (diff) |
Decouple Gormlak AI from creatures
Decouple the definition of the Gormlak AI from the creature type itself using generic lenses and a "HasVisionRadius" typeclass, to begin to untangle the hs-boot web of circular dependencies. This actually *increases* the number of hs-boot files from 1 to 2, but both of the source imports that use them are single-instance (unlike gormlak AI which I would expect to grow linearly with the growth of the game), plus at least one should be able to go away once we remove collision from the game lenses module and move it into something defined in the entity class itself.
Diffstat (limited to 'src/Xanthous/Game/State.hs')
0 files changed, 0 insertions, 0 deletions