5 Enemy::Enemy(Game
* agame
): Shooter(agame
, Ponto(0,0), Ponto(0,0)) {
11 //game->enemyManager->remove(this);
12 //game->gravityManager->deleteThing(this);
13 //game->collisionManager->remove(this);
18 if (game
->player
->getPosition().x
< this->getPosition().x
)
22 if (distance(game
->player
->getPosition(), this->getPosition()) >= 500)
24 setAim(game
->player
->getPosition().x
,game
->player
->getPosition().y
-50);
28 void Enemy::collide(Thing
* b
) {
30 Shot
* shot
= dynamic_cast<Shot
*>(b
);
31 if (shot
&& shot
->firedBy
== game
->player
) {