-HitResponse
-Yeti::collision_player(Player& player, const CollisionHit& hit)
-{
- if(player.is_invincible()) {
- kill_fall();
- return ABORT_MOVE;
- }
- if(hit.normal.y > .9) {
- hitpoints--;
- bullet_hitpoints--;
- sound_manager->play_sound("yeti_roar");
- if(collision_squished(player))
- return ABORT_MOVE;
- else if (hitpoints <= 0) {
- bullet_hitpoints = 0;
- player.kill(Player::SHRINK);
- return FORCE_MOVE;
- }
- }
- player.kill(Player::SHRINK);
- return FORCE_MOVE;
-}
-