TheWhizard/AI-CORE — pull request #9 by Kiithknight (2011-10-10 01:01:45+00:00)
Title: 10-9-2011

Chase, Explore, and Evade are now working properly, and the code was cleaned a bit
Updated WallAvoid to work properly and handle special cases (like Evade)
Added new function: UpdateLocation() will update the bot's x,y,z coords based on facing, velocity, and magnitudes
Added new variable: char currentStateName will hold information for the current state (example: 'Ex' for Explore)
Added new function: SetName() sets currentStateName
Added new function: GetName() returns currentStateName

Discovered a bug: Update must be called twice when switching states. For example when switching from Evade to Explore it is not enough to do this:
test.Update(1,1,0,0,vec,false);

You must do this:
test.Update(1,1,0,0,vec,false);
test.Update(1,1,0,0,vec,false);

It's going to be annoying, so we need to fix it ASAP.