All pastes #2107518 Raw Edit

Someone

public text v1 · immutable
#2107518 ·published 2012-01-29 18:52 UTC
rendered paste body
void 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);
	}
}