8 Commits

Author SHA1 Message Date
Auke Kok
8a62d34438 Major refactor.
All step code is now part of the driver engine:
- sound steps
- factor accounting
- factor-based switching
- animation step handling.

Moreover, there is no more local factor state subtable,
and factors need to return or pass factordata to the
driver method. Factordata is only passed to the .start()
method as well, but that can then store the needed data
into the entity_ai_state as needed by the driver itself.

This still has an issue with entity animation sequence
ends, as far as I can see, in the sheep eat driver. This
will need further work.

finders, drivers and factors are now all in separate files.

The sheep script has been partially cleaned up to account
for the differences

Many asserts were added. We need to keep these until things
become more stable, and possibly add a ton more of them to
make sure we're not passing garbage.

A luacheck file is added to keep things sane going forward.
2017-04-05 00:28:22 -07:00
Auke Kok
990c53f39b Add licensing, clarify sound file licenses. 2016-09-26 09:37:45 -07:00
Auke Kok
3eb81fdc90 Better positioning to eat - must be right near. 2016-05-02 00:10:55 -07:00
Auke Kok
4b694f37f6 Nearly done rewriting using registrations. 2016-05-01 23:40:02 -07:00
Auke Kok
e3928fa56d Sounds (through driver object). 2016-05-01 16:29:34 -07:00
Auke Kok
3a87cafee0 Implement per driver properties and global properties 2016-04-30 23:57:06 -07:00
Auke Kok
4a16c98b63 Cleaned up animation parts. 2016-04-30 20:05:18 -07:00
Auke Kok
7815223fc7 Path class completed and debugged. 2016-04-27 23:53:36 -07:00