"with" in vb in C++ ?

Started by
10 comments, last by Daivuk 21 years, 1 month ago
hum. look interresting...
But, I will keep my old method. Cuz I want to visualize it easisy.. I know its not the proper method and your probably better.

But its easy to read it and change thing :


  // Les unitée DESCRIPTIONDESC_UNIT[GMUNIT_CHOOSEN_MOBILE_CONSTRUCTOR].Icone = &_texMapEdIcone[18];DESC_UNIT[GMUNIT_CHOOSEN_MOBILE_CONSTRUCTOR].Life = 100;DESC_UNIT[GMUNIT_CHOOSEN_MOBILE_CONSTRUCTOR].Shield = 0;DESC_UNIT[GMUNIT_CHOOSEN_MOBILE_CONSTRUCTOR].SpeedIncomShield = 0;		DESC_UNIT[GMUNIT_PARASITE_CRAWLER].Icone = &_texMapEdIcone[25];DESC_UNIT[GMUNIT_PARASITE_CRAWLER].Life = 55;DESC_UNIT[GMUNIT_PARASITE_CRAWLER].Shield = 25;DESC_UNIT[GMUNIT_PARASITE_CRAWLER].SpeedIncomShield = 1.2f;etc...  
Advertisement
Its juste like constant.
how can I say that.
Like template!
The array UNIT_DESC[] is a template of all default for Unit.

This topic is closed to new replies.

Advertisement