All pastes #995677 Raw Edit

trace

public cpp v1 · immutable
#995677 ·published 2008-04-24 12:00 UTC
rendered paste body
const char *traceTypeText[TRACE_MAX] ={	"Center",	"Random Volume",	"Random Surface",	"Capsule Volume",	"Capsule Surface",/*	"Countour",*/	"Body Trace",};typedef enum {	TRACE_CENTER,				// trace center point only 	TRACE_RANDOM_VOLUME,		// generate random points within box volume//	TRACE_CONTOUR,   	TRACE_RANDOM_SURFACE,		// generate random points on the side(s) of the box that is(are) facing us	TRACE_CAPSULE_VOLUME,		// fill a capsule with random points	TRACE_CAPSULE_SURFACE,		// fill the surface of a capsule with random points	// this is not a menu option	TRACE_BODY,	TRACE_MAX} boxtrace_t;	},	{ "trace",			"0",			SETTING_INT,		(void*)&eth32.settings.traceType,		"set the style of trace used to determine if a target is visible",		0, TRACE_MAX-1,		{			{ (int)TRACE_CENTER,		"center" },//			{ (int)TRACE_CONTOUR,		"contour" },			{ (int)TRACE_RANDOM_VOLUME,	"randvolume" },			{ (int)TRACE_RANDOM_SURFACE,	"randsurface" },			{ (int)TRACE_CAPSULE_VOLUME,	"capvolume" },			{ (int)TRACE_BODY,		"body" },			{ (int)TRACE_CAPSULE_SURFACE,	"capsurface" },		},