Kind of a milestone, assuming that 12 hours ago OOP had me shitting myself.
Gamemakers implementation of an object model makes this stuff look easy!struct human {
char name[50];
int height;
float weight;
void printStats(void);
void excersize(int hours);
void init (char name_ts[49], int height_ts, float weight_ts);
};
void human::printStats(void) {
printf ("Name: %s, Height: %d, Weight: %d", name, height, weight);
}
void human::excersize(int hours) {
weight -= (float)hours*.515;
printf ("%s excersized! horray", name);
}
void human::init(char name_ts[49], int height_ts, float weight_ts) {
strcpy( name, name_ts);
height = height_ts;
weight = weight_ts;
}
Seeing stuff like that make me feel good there is GM. ;)
@DF81: Ditto. Are there any Irrlicht users here?