Okay I have a data structure called SPRITE. Then I have another data structure called PLANE. The SPRITE structure holds all the data that doesn't pertain to the actual bitmaps that make up the sprite and the PLANE structure holds an array of bitmaps that make up the sprite and a reference to the SPRITE structure. So it looks like this:
Code:
typedef struct SPRITE{
SPRITE_STATE current_state;
int x;
int y;
int width;
int height;
int xspeed;
int yspeed;
int xcount;
int ycount;
int xdelay;
int ydelay;
int curframe;
int maxframe;
int animdir;
int framecount;
int framedelay;
int alive;
}SPRITE;
typedef struct PLANE{
BITMAP *flying[3];
SPRITE *sprite;
}PLANE;
Now my question is how do I set/get a value from the SPRITE structure through the PLANE structure?
If that sounds confusing please let me know and I'll try to be more specific and thanks in advance for any help provided.