Esempio n. 1
0
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;
	}
}
Esempio n. 2
0
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;
	}
}