Witam,
Piszę gre coś na styl space shootera i napotkałem na mały problem, mianowice chce żeby gdy pocisk będzie się znajdował za polem widocznym dla gracza objekt Bullet był usuwany z listy ale gdy robie tak:
for (std::list<Bullet>::iterator i = bullets.begin(); i != bullets.end(); i++)
{
i->shoot();
if (i->getPosition().y < view.getCenter().y - HEIGHT / 2 - textures["bullet"].getSize().y);
bullets.remove(*i);
}
to wywala błąd : error C2678: binary '==' : no operator found which takes a left-hand operand of type 'Bullet' (or there is no acceptable conversion)