Design pattern to evaluate creat. behavior
Hello,
I searched the forum but didn't find anything how to organize the behavior evaluation of creatures in a labyrinth using software design patterns.
The simplest way I imagine is to do simple "case" or "if" comparison.
E.g. when the data model is going to be evaluated (before rendering) it is needed to know if the creature "x" is allowed to move forward/backward/right/left or whatever.
What do you think of "Strategy" pattern or maybe "State"?
Thank you.
That didn't make any sense to me. What exactly are you trying to do? We'll worry later about what patterns are appropriate for the job, if any.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement