int TargetFigure::getTargetNum()

in str/apps/src/TargetFigure.cpp [54:82]


int TargetFigure::getTargetNum(BlockColor color)
{
	int targetNum = 0;
	
	switch(color)
	{
	case BlockColor::Black:
		targetNum = targets[0];
		break;
		
	case BlockColor::Red:
		targetNum = targets[1];
		break;
		
	case BlockColor::Yellow:
		targetNum = targets[2];
		break;
		
	case BlockColor::Blue:
		targetNum = targets[3];
		break;
		
	case BlockColor::Green:
		targetNum = targets[4];
		break;
	}
	
	return targetNum;
}