Original Post
Hello again, I'm having a hell of a time figuring out what I should do with this. What I want to do is: Take my base class as a pointer and set it to some derived class like. SQUARE *grass; grass = new GRASS; . However, when I try this, the only member functions accessible are ones I overloaded in the derived class anything above and beyond them in the derived class I can't access. I want to have different classes of map tiles to be all put in a vector, so I thought this would be the way to do this with out making just one huge class(which kind of defeats the purposes classes I think). The vector that's supposed to be holding these title class's are in the GRID class. Thanks for reading.
int main()
{
using std::cout;
using std::endl;
ITEM item;
item.m_ItemActive();
PLAYER player;
player.m_PlayerActive();
int x=5, y=5;
GRID grid(x,y);
SQUARE *gridsquare;
gridsquare = new GRIDSQUARE;
gridsquare->m_Init(3,3);
gridsquare = grid.findSquare(2,4);
gridsquare->m_addItem(item);
gridsquare->m_addItem(item);
gridsquare->m_addPlayer(player);
grid.m_showSquares();
delete gridsquare;
return 0;
}