Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

Gameplay.ActionObjectiveAdd


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
class ActionObjectiveAdd extends ActionObjectiveBase
	dependsOn(ObjectiveInfo);

const MAX_OBJECTIVE_ACTORS = 10;

var() Name												description;
var() actionnoresolve ObjectiveInfo.EObjectiveStatus	status;
var() actionnoresolve ObjectiveInfo.EObjectiveType		type;
var() actionnoresolve Name								objectiveActors[MAX_OBJECTIVE_ACTORS];
var() actionnoresolve class<RadarInfo>					radarInfoClass;

// execute
latent function Variable execute()
{
	local Array<ObjectivesList> list;
	local int i, j;
	local ObjectiveActors oa;
	local Actor a;

	super.execute();

	getListObjects(list);

	oa = new class'ObjectiveActors';

	for (i = 0; i < list.Length; i++)
	{
		oa.objectiveActors.length = 0;

		for (j = 0; j < MAX_OBJECTIVE_ACTORS && objectiveActors[j] != ''; ++j)
		{
			foreach parentScript.actorLabel(class'Actor', a, objectiveActors[j])
			{
				oa.objectiveActors[oa.objectiveActors.length] = a;
			}
		}

		list[i].add(objectiveName, description, status, type, oa, radarInfoClass);
	}

	oa.Delete();

	return None;
}

// editorDisplayString
function editorDisplayString(out string s)
{
	s = "Add Objective " $ propertyDisplayString('objectiveName') $ ", " $ 
		class'ObjectiveInfo'.static.statusText(status) $ " " $
		class'ObjectiveInfo'.static.typeText(type);
}

defaultproperties
{
	returnType			= None
	actionDisplayName	= "Objective Add"
	actionHelp			= "Adds an objective for either all teams, a single team or a single player."
	category			= "Objective"
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: ne 5.9.2004 15:53:24.000 - Creation time: st 23.5.2018 00:10:40.393 - Created with UnCodeX