*Note this is being programmed in C#.
My first thing is: What is the best way to do a Research Tree type setup.
Currently I am thinking of using 2 lists. One for the what the player has researched and one for the tree. The problem I see developing soon after the player starts researching things, the game will start to lag while it searches thought the lists to see if the player has the requirements.
EX:
Basic Research has no requirements (Other than the cost that is already in place)
Intermediate Research Requires Basic Research
ETC...
Basic Missiles require Intermediate Explosives, Intermediate Research, Basic Propulsion.
Intermediate Missiles Require Basic Missiles, Intermediate Propulsion.
You get the picture... It will lag like hell after a few levels... I want a good Idea on how to do this better...
(I will have more Game Related Questions... I'll post them in here.)
My first thing is: What is the best way to do a Research Tree type setup.
Currently I am thinking of using 2 lists. One for the what the player has researched and one for the tree. The problem I see developing soon after the player starts researching things, the game will start to lag while it searches thought the lists to see if the player has the requirements.
EX:
Basic Research has no requirements (Other than the cost that is already in place)
Intermediate Research Requires Basic Research
ETC...
Basic Missiles require Intermediate Explosives, Intermediate Research, Basic Propulsion.
Intermediate Missiles Require Basic Missiles, Intermediate Propulsion.
You get the picture... It will lag like hell after a few levels... I want a good Idea on how to do this better...
(I will have more Game Related Questions... I'll post them in here.)