Talk:Main Page
From LagoonWiki
I am not very good at using WIKI so I am going to write this under talk.
Here is a copy of how to use the level system for the tech tree.
- include "towle/ntechtree.h" //This must be included in any file that needs tech tree levels
.
.
.
nTechtree* tree = side.GetRef()->Find("techtree");
level = tree->getLevel(utemp);
//Where utemp is a nString (or char array)
/* Here is the list of strings
"ltgunb" =if this is utemp then it will return value of light gun
"ltarmorb" =" " " Light Armor Bonus
"hvgunb" =" " " Heavy Gun Bonus
"hvarmorb" =" " " Heavy Armor Bonus
"missileb" =' " " missile Bonus
"medgunb" =" " " Medium Gun Bonus
"medarmorb" =" " " Medium Armor Bonus
"rocketb" =" " " Rocket Bonus
"tekb" =" " " Current HQ level...I am still working on this.
All Bonus's will have only 0-3 levels (Ideally)
And the getLevel returns a normal int nothing else.
- /
I should have pop caps up pretty soon.
I hope this pose ok.
Cheers Brad Towle
