Source Code and Compiled Executable

This was a project written for my AI class at DeVry, it is an extension of the Steering Forces Demo also available here.

In addition to the steering forces and obstacle avoidance featured in the previous demo, this add team level decision making, using Fuzzy Logic based on the overall health and ammo levels of the team. As the team takes damage, they’ll look for health pickups, and as they run out of ammo, they’ll look for ammo pickups. Otherwise, they’ll hunt each other down. The simulation isn’t perfect; there are instances where both teams will be looking for a pickup, and swarm the spawn location of it. But, you can see instances where they gang up on each other, and where their priorities lie at a given time (their targets are marked).

In addition to the modules implemented in the Steering Forces project (Direct3D, DirectInput, Singleton, Manager and Templated State Machine), this project adds a Factory class to generate the agents, and a Messenger to send messages between agents and the manager. It is also compiled for Windows, using the Win32 API.

Leave a comment