Rystic / clay

A small game I'm making with LWJGL.
0 stars 0 forks source link

Logic should be broken out of Generic classes. #52

Closed Rystic closed 10 years ago

Rystic commented 10 years ago

Generic Behavior is just a set of getters and setters to describe a behavior class, while BehaviorInstructionCalculator actually executes the actions from the behavior. This should be replicated on all the other generic classes - GenericBuilding, GenericGolem, and GenericItem.

Rystic commented 10 years ago

There isn't enough logic in GenericItem and GenericGolem to justify creating a new class. GenericBuilding has a lot of logic that ties to the values the instances have. Creating a new class for this would just be messy.