CVorticonSpriteObject::CVorticonSpriteObject(CMap *pmap, Uint32 x, Uint32 y, object_t type) : CSpriteObject(pmap, x, y), m_index(m_number_of_objects), m_type(type), touchPlayer(0), touchedBy(0) { if(m_type != OBJ_NONE ) { setupObjectType(g_pBehaviorEngine->getEpisode()); performCollisions(); } }
CSoundWave::CSoundWave(CMap *p_map, Uint32 x, Uint32 y, direction_t dir, object_t byType, size_t byID) : CRay(p_map, x, y, dir, CENTER, 0,byType, byID), animframe(0), animtimer(0), offscreentime(0) { m_type = OBJ_SNDWAVE; setupObjectType(gpBehaviorEngine->getEpisode()); GsSprite &rSprite = gGraphics.getSprite(mSprVar,sprite); m_BBox.x1 = rSprite.m_bboxX1; m_BBox.x2 = rSprite.m_bboxX2; m_BBox.y1 = rSprite.m_bboxY1; m_BBox.y2 = rSprite.m_bboxY2; performCollisions(); }