rem: case NMT_AttackMelee: case NMT_Gather: case NMT_Heal: args[0]=event.entity; args[1]=null; break; 
context: function worldClickHandler(event){	args=new Array(null, null);	console.write("worldClickHandler: button "+event.button+", clicks "+event.clicks);	if (isSelecting())	{		getGlobal().selectionWorldClickHandler(event);		return;	}	// Right button single- or double-clicks	if (event.button == SDL_BUTTON_RIGHT && event.clicks <= 2)	{		if (event.clicks == 1)			cmd = event.order;		else if (event.clicks == 2)		{			console.write("Issuing secondary order");			cmd = event.secondaryOrder;		}	}	else	{		return;	}	switch (cmd)	{		// location target commands		case NMT_Goto:		case NMT_Patrol:			if (event.queued)			{				cmd = NMT_AddWaypoint;			}			args[0]=event.x;			args[1]=event.y;		break;		case NMT_AddWaypoint:			args[0]=event.x;			args[1]=event.y;		break;		// entity target commands		case NMT_AttackMelee:		case NMT_Gather:		case NMT_Heal:			args[0]=event.entity;			args[1]=null;		break;		case NMT_Generic:			args[0]=event.entity;			args[1]=event.action;		break;		default:			console.write("worldClickHandler: Unknown order: "+cmd);			return;		break;	}	issueCommand (selection, cmd, args[0], args[1]);}
meta: 1070	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1070/795e07990e4fc2e5f2e5b31da6555bb14672f821/functions_sim_entity.js/clean/binaries/data/mods/official/gui/test/functions_sim_entity.js