void CRay::process() { switch(state) { case RAY_STATE_FLY: moveinAir(); break; case RAY_STATE_SETZAPZOT: setZapped(); // ... and fall through break; case RAY_STATE_ZAPZOT: gotZapped(); break; } }
void CRay::process() { std::vector<CVorticonSpriteObject*>::iterator it_obj; switch(state) { case RAY_STATE_FLY: moveinAir(); break; case RAY_STATE_SETZAPZOT: setZapped(); // ... and fall through break; case RAY_STATE_ZAPZOT: gotZapped(); break; } }