Jump to content
  • Advertisement
Sign in to follow this  
dendroid66

Design pattern to evaluate creat. behavior

This topic is 3093 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!