J
JoeC
class player{
string name;
graphic * gr;
void create();
public:
player();
graphic& gOut() {return *gr;} <- Wand to retrun the graphic for
display
void dummy(){MessageBox(NULL, "Dummy" , "Notice", MB_OK); }
};
graphic& space::graphicOut(){
if(play){return play->gOut();} <-Returning the graphics pointer
for display
if(seen){return *gr;}
else {return *grDefault;}
}
graphic& board::display(int y, int x){
return spaces[y][x].graphicOut();
}
gr = &maze->display(l2, l1);
gr->display(hwnd, l1*spacing, l2*spacing); <-crashes here
when I try to display the
graphic from the player.
string name;
graphic * gr;
void create();
public:
player();
graphic& gOut() {return *gr;} <- Wand to retrun the graphic for
display
void dummy(){MessageBox(NULL, "Dummy" , "Notice", MB_OK); }
};
graphic& space::graphicOut(){
if(play){return play->gOut();} <-Returning the graphics pointer
for display
if(seen){return *gr;}
else {return *grDefault;}
}
graphic& board::display(int y, int x){
return spaces[y][x].graphicOut();
}
gr = &maze->display(l2, l1);
gr->display(hwnd, l1*spacing, l2*spacing); <-crashes here
when I try to display the
graphic from the player.