//----------------------------------------------------------------------------
BOOL CFlyingBurstCondomBitmap::Move(){
//----------------------------------------------------------------------------
	m_markedForDelete = !MoveRel(m_speed);
	if(m_currentImage ==8)
		m_currentImage = 0;
	if(m_currentPosition.x<=10 && m_currentImage<9){
		m_currentImage=9;
		m_speed.x = 0;
		m_speed.y = 0;
	}

	if(m_currentPosition.y>=(m_drawRect.Height()-Height()) && m_currentImage<9){
		m_currentImage=9;
		m_speed.x = 0;
		m_speed.y = 0;
	}

	if(m_currentImage ==  (m_drawBitmapCollection.GetSize()-1))
		m_markedForDelete = TRUE;

	return !m_markedForDelete;
}
//----------------------------------------------------------------------------
BOOL CFlyingEarthBitmap::Move(){
//----------------------------------------------------------------------------
	m_markedForDelete = !MoveRel(m_speed);
	return !m_markedForDelete;
}
Example #3
0
void EBox::Move(float x, float y) {
	float deltax=x-_x, deltay=y-_y;
	MoveRel(deltax,deltay);
}