Sprite& Sprite::operator=(const Sprite& rhs) { setPosition(rhs.getPosition()); setVelocity(rhs.getVelocity()); setInitVelocity(rhs.getInitVelocity()); frame = rhs.frame; strategy = rhs.strategy; return *this; }
void Ribbon :: init() { setLength( RIBBON_DEFAULT_LENGTH ); setWidth( RIBBON_DEFAULT_WIDTH ); setInitPosition( 0, 0, 0 ); setInitVelocity( 0, 0, 0 ); setInitColor( 0, 0, 0, 1 ); trailCount = 1; upAxis.set( 0, 1, 0 ); upAxisRot = 5; }