Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

oh well

Sign in to follow this  


I must keep zen... I must keep zen...

Beside the fact that I currently consider my job as being... well... awful... to select a mild word, I'm also struggling with the TBS engine.

I thought that I had found just the right way to do save games and the entity<->category relationship when I stumbled onto the underground templates that are used to generate the underground of a map. I don't want to store the entity parameters completely when making a savegame because that would prevent me from changing the template and having that changement affect the map accordingly.

So... I had to bite the sour apple and store a pointer to the template that is used to create an entity within the entity class and additionally give the template and the entity a function to access the name of the category in which they are stored.

On the other side, this allowed me to have inheritance between the templates. Means I can derive a template from another one.
Sign in to follow this  


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 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!