Jump to content
  • Advertisement
Sign in to follow this  

Relationships in Data Driven Rules

This topic is 3627 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

I am looking for some informed advice on how to relate instances in a data driven rules engine I'm putting together. I have a Race class that gets instantiated with different data, obviously pertaining to differrences between races. Creatures, my basic 'unit' class need to hold a reference to what Race they are. I've come up against a snag in design as im not sure if I should be keeping multiple instances of the race and saving it along with creatures when the time comes to save (redundant)...Or if I should come up with a surrogate method to re associate Creatures with Races. I am trying to best anticipate how it would impact things like saving and loading as object references dont persist so well... I'm sure there are many people here who might be able to give some insight. I enjoy complicated rules systems and want to ensure i follow the best practices in lacing it all up! Thanks! [Edited by - sniperslap on January 10, 2009 9:22:45 AM]

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!