Someone
public text v1 · immutablevoid Smiley::Paint()
{
if (m_IsSleeping == true)
{
GAME_ENGINE->DrawBitmap(m_BmpSleepingPtr, m_PosX, m_PosY);
}
else if (m_IsHighest == true)
{
GAME_ENGINE->DrawBitmap(m_BmpHappyPtr, m_PosX, m_PosY);
}
else if (m_PosX < 0 || m_PosX > GAME_ENGINE->GetWidth() - m_Diameter ||
m_PosY < 0 || m_PosY > GAME_ENGINE->GetHeight() - m_Diameter)
{
GAME_ENGINE->DrawBitmap(m_BmpScaredPtr, m_PosX, m_PosY);
}
else
{
GAME_ENGINE->DrawBitmap(m_BmpNeutralPtr, m_PosX, m_PosY);
}
}