Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.

Guest Anonymous Poster

Structure of objects in isoland

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

Guest Anonymous Poster
I'm currently in the process of designing a CRPG. Not in code phase yet, mostly design.

I prefer to know what I'm going to do before I actually do it. ;-)

What I would like to do is to give all objects (trees, tables, walls) different physical characteristics.
Since they got it in real life I thought it would be neat to have it in the game as well.

A stone wall acts differently to a explosion than a paper wall.

Looking at an isometric tile there is a possibility of adding at least five objects on that tile. As far as I can see anyway.

I could make loads of maps to sort out all the objects but I thought that there must some better way.

Any ideas on how to build something like that?

Share this post

Link to post
Share on other sites
the use of inheritance would be well applied here. the main issue is developing an interface that provides all of the functionality you need while remaining generic enough to encompass all of the descendent classes. also, each class will have to make good use of encapsulation, since your map only knows that there is a CThingie on the tile, not that it is a CStoneWall, or CRock, or CTree. You may find that containing a number of internal variables, such as Durability, can accomplish keeping track of things like how decimated a stone wall has become, or how destroyed a tree is.

you may also have to come up with a base class for mobile game objects like catapult stones, arrows, or whatever, so that you can generically give an InteractWith() member function to your immobile object's base class.

so, anyway, there's MY thought.


Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!