mercredi 23 novembre 2016

Appropriate data structure for Event class

I was coding class that will give users multiple choices and based on that do some action and continue with event."Something similar in RPG-s when you have option what to talk with npc and what you said will affect later options"

Example: Structure

I was trying to use tree structure here but i had problems making branches connect.

So what kind of data structure should i choose or make some myself? I dont have options for pointers in this language.

Any tips are welcome!

Aucun commentaire:

Enregistrer un commentaire