see:http://aigamedev/open/tutorials/potential-fields/

Introduction

Bots for RTS games may be very challenging to implement. The bot controls an often very large number of units that will have to navigate in a large dynamic game world, while at the same time avoiding each other, searching for enemies, defending own bases, and coordinating attacks to hunt the enemy down. RTS games operate in real-time which can make planning and navigation difficult to handle.

This is a tutorial about an unconventional planning and navigation method that uses multi-agent potential fields.

更多推荐

Using Potential Fields in a Real-time Strategy Game Scenario (Tutorial)