예제 #1
0
 void Apple::Collide(Snake& snake)
 {
     snake.Grow();
     m_used = true;
     if (snake.IsPlayer())
     {
         Game& game = GetGame();
         game.GetStatus().AppleEaten();
         game.GetSfxManager().GetSound("apple")->Play();
     }
 }