Author Topic: Programming RPG's...  (Read 5383 times)

0 Members and 1 Guest are viewing this topic.

saubue

  • Guest
Programming RPG's...
« Reply #15 on: May 20, 2006, 10:55:00 am »
It's kinda off-topic now, but...

I'm using them a lot in Advanced Dialogs Pro (one of my current projects). The user will have to deal with GUI-elements all the time, and all of them are structures that can be used for all kind of stuff (I'm trying to make the lib as extensible as possible, so that you can write your own GUI elements very easy).

Here's the stucture of an element:
c1-->
CODE
ec1typedef struct _adel   /* Basic element type */
{
   void *parent;

Liazon

  • Guest
Programming RPG's...
« Reply #16 on: May 20, 2006, 10:58:00 am »
QuoteBegin-Alex+May 19 2006, 04:36 PM-->
QUOTE (Alex @ May 19 2006, 04:36 PM)
void (*functions[2])(void) = { NULL };  

 What does this line mean?  I understand what you're doing with everything else, but what kind of void pointer are you initiating?

saubue: )_)

saubue

  • Guest
Programming RPG's...
« Reply #17 on: May 20, 2006, 11:02:00 am »
He's initialising an array of 2 pointers to functions that require no argument and return nothing.