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

finished first part

Sign in to follow this  
Metron

289 views

Yesterday evening I've finished the first part of the TBS engine, the entity management.

I've decided to make a difference between the entities and the templates that are used to generate those entities. The reason was the difficulty that could arise when you add a template by inadvertance to the entity stack.

I've also implemented Template- and Entitylists. I've done this because I needed an easy way to iterate the search through the entities. An easy example would be that you get all buildings as an entitylist from the entity manager. You then search within that list all building that are able to produce energy. You'll then get an entitylist from the entitylist. This makes searching for a given entity quite simple. The same thing applies for the template list.

I've also implement the categorized management of the entities and templates. This reduces the number of entities that have to be iterated when searching for a given type or parameter.

Soooo... I've now finished the V1 of the command machine and V1 of the entity manager. With this base I could implement a first game if I would implement the ruleset within the game. Because I don't want to do this, the next step is to think of a way of how to include the rule set into the TBS engine. A big part of the rule set can be done through the command machine (ie. moving an entity, attack, defend, etc).
Sign in to follow this  


0 Comments


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.

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!