Original Post
This is my first time worknig with it but im trying to make it that a second of land can build all the object on it. ALl the objects have inherited "gameobject" and the land has pointers to gameobjects but it doesnt work, here''s a stripped down version of what i have:
class gameobject
{
virtual void draw()
{
}
};
class person : public gameobject
{
virtual void draw()
{
drawingstuffhere();
}
}
class landtile
{
gameobject *objectz;
void draw()
{
objectz->draw();
}
};
void main()
{
landtile land;
person me;
land.objectz = &me
land.draw();
}