help 'bout struct/class... in vc
Displaying 1-2 of 2 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
QuebecMan

ok! it's been a while since i've started VERGEing(something like 2-3years) and i have done quite a lot of little game, but never released them. Now I am working on a super project in v2. The Battle system is almost complete now. I was wondering if there is still a lot on project going on? it's been like 3 months that i havent stepped here, so i'm not following the news, really. But now, to my real question:
I am now learning C/C++ in school, and we are currently in class/struct type, and i was wondering if i could make my VCs clearer by using some struct.
so i tried typing struct and i came blue(cause i'm using textpad and color for vc code)anyway, so i conclude that it is possible, but i tried this:

struct TypeHero{
int Hp;
int Mp;
}
void InitStats()
{
TypeHero ErayMan;
ErayMan.Hp = 100;
}

ok, this was just a test, but still, it gave me an token error on compil. Is it the syntax? or can't i use struct at all?
thanks
(ps, sorry for the blabla:))
-ErayMan
}



Posted on 2001-10-18 19:58:05

andy

VC does not, and never has had, (which isn't to say that it never could have) struct support.

aen had a testbox compiler that could handle all that, but it was still hacky and gross, and aen lost interest in verge soon after. So, if someone had a lot of time, and talent, they could theoretically code a compiler to handle all that.

<shamelessplug>v2.7 uses Python instead of VC, and as such fully supports classes, complete with function overriding, multiple inheritence, and all kinds of other fun stuff. It may be worth looking into. :)



"Ignorance is its own reward" -- Proverb

Posted on 2001-10-18 21:31:53


Displaying 1-2 of 2 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.