Sunday, December 30, 2012
Summary
More high-level AI work today, including starting to make the battle simulation code to help the AI understand the ramifications of engagements. This is going to be a central part of both the AI code as well as the out-of-system simulation code, so I imagine it'll take quite a while to hammer out this bit...but at least I've started on it.
Most of my time today was spent cleaning up more interfaces and refactoring various pieces of the engine that I felt could be simpler. Love that squeaky-clean-code feeling
I also had a rather nice idea today concerning solving the problem of proximity queries, which have been bugging me for a long time. Until now, I've been relying on the same structure that the physics engine uses to perform queries of the form "give me a list of objects that are near X." Now, however, I'm come up with a great way of doing this completely independently of the physics engine. Eliminating dependencies is always a great feeling Furthermore, the method is highly efficient. The tradeoff is that it isn't necessarily completely accurate - in some cases, it may fail to detect a proximate object for quite some time, while in other cases it may report an object for longer than the duration in which the object is in proximity. The probability of success, however, can be changed via a single number (hint: it's a Monte Carlo method!!! I love MC!!! ). Initial tests have indicated that the system is more than fast enough for my purposes, and is working really nicely with the AI collision avoidance system (which, currently, is the main user of proximity queries).
Finally, I started playing around with trying to design a strategic interface (for top-down, RTS-style control). I need to get going on it since we'll want to have it available in the Prototype!
Oh, and I forgot to mention that yesterday, I integrated SFML's audio engine into LT, so we now have sound!
Hour Tally
Coding: 4.50
Internet: 4.33
Testing: 0.83
Total Logged Time: 9.67
Post
Mon Dec 31, 2012 12:08 am
#1
Week of December 30, 2012
“Whether you think you can, or you think you can't--you're right.” ~ Henry Ford