Hi, I'm going to try to explain this correctly..
Let's say I have a class CEntity, like this:
class CEntity : public sf::Drawable
{
private:
int mX, mY; //An entity always has a position
};
And then I have a class CObject, like this:
class CObject : public CEntity //Derived from CEntity
{
private:
sf::Sprite mTexture; // An object always has a texture
public:
//We want to draw this object via sf::RenderWindow::Draw()
virtual void Render(RenderTarget& Target) const
{
Target.Draw(mTexture);
}
};
Now, is this a bad thing to do?
And how should I do instead?
Let's say I call upon CObject::SetPosition(), there is no position to set?
I'm sorry if it's a bad example, but it was all that I could think of at the moment..