This recipe is based on the Kung-Fu Circle algorithm devised for the game Kingdoms of Amalur: Reckoning. Its purpose is to offer an intelligent way for enemies to approach a given player and set attacks on it. It is very similar to the formation recipe, but it uses a stage manager that handles approach and attack permissions based on enemy weights and attack weights. It is also implemented so that the manager is capable of handling a list of fighting circles; this is especially aimed at multiplayer games.
Building a fighting circle
Getting ready
Before implementing the fighting circle algorithm, it is important to create some components that accompany the technique. First, the Attack class is a pseudo-abstract class for creating...