4 Player::Player(Game
* agame
, Ponto pos
, Ponto speed
): Shooter(agame
, pos
, speed
) {
8 void Player::desenha() {
9 game
->desenhaMira(aim
);
13 void Player::collide(Thing
*b
) {
14 Shot
* shot
= dynamic_cast<Shot
*>(b
);
15 if (shot
&& shot
->firedBy
!= this) {
17 if (this->getPosition().x
< shot
->firedBy
->getPosition().x
)
21 addToAngle
= std::max(std::min(addToAngle
, PI
/2),-PI
/2);