clintbellanger/flare — Issue #276: Create new interface for defining Entity behaviors
Author: clintbellanger
Created: 2012-01-04 17:55:20+00:00
State: open
Labels: Feature, Refactor

Much of the code in Enemy::logic should be moved to a component class that handles behavior.

Consider an interface that takes in all the information needed for enemies to make decisions (position and state of other entities and hazards, map collision info, etc). Output should be movements, state changes, power usage, etc.

Basic melee creatures might all use the same behavior class. Flying/swooping creatures would have their own class. Some bosses might have a single-use behavior class.

I'm open to ideas on how this interface should look, how it should be structured.