Jump to content
  • Advertisement
Sign in to follow this  
Immutate

Determining character/entity attributes and nomenclature...

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

This is my first post, so please go easy on me guys! I was wondering what makes the most sense when naming a character/entity's attributes in code and in the database. I'm typically a fan of separating the display from the logic and model of my games and applications, and in the game I'm developing an character/entity's health metric is the amount of blood loss they've experienced. Where I'm stuck is the name I should be using for the variables, methods, and database data relating to this metric. Should I leave the name more abstract and simply refer to the information as 'health', until it is displayed to the user as 'blood loss', or would it make more sense to simply call this the same thing as when it is displayed to the end user. I know this seems like something trivial, but these sorts of things are never easy to fix retroactively, even if they should be.

Share this post


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

  • 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!