Thread: Oow Code(s)
View Single Post
  #6  
Old 09-30-2004, 09:08 AM
cavedude's Avatar
cavedude
The PEQ Dude
 
Join Date: Apr 2003
Location: -
Posts: 1,988
Default

Small suggestion. I would make the first if statement of each case the level 70 title, then the first else 65, and so on. It would keep things in order. Very nice work, though. I'm glad you've decided to pick up C++. So for example change:

case WARRIOR:
if (level >= 65)
return "Overlord"; //Baron-Sprite: LEAVE MY CLASSES ALONE. Xabob...NO!!! rofl
else if (level >= 70)
return "Vanquisher";
else if (level >= 60)
return "Warlord";
else if (level >= 55)
return "Myrmidon";
else if (level >= 51)
return "Champion";
else
return "Warrior";

to :

case WARRIOR:
if (level >= 70)
return "Vanquisher"; //Baron-Sprite: LEAVE MY CLASSES ALONE. Xabob...NO!!! rofl
else if (level >= 65)
return "Overlord";
else if (level >= 60)
return "Warlord";
else if (level >= 55)
return "Myrmidon";
else if (level >= 51)
return "Champion";
else
return "Warrior";
Reply With Quote