Trying to implement a crude (?) AI system.
Effectively, the various objects will add AIModule subclasses to a vector of AIModules, and each module will take some action each time. For instance, the AIChase module chases a target and tries to get to a certain spot around them. The AIAttack module waits until the target is within range and attacks.
Looks like it might be working so far, although AIChase seems to not want to get on the right side of the target.
Monday, March 30, 2009
Thursday, March 26, 2009
Subscribe to:
Posts (Atom)