Main Page   Modules   File List   File Members  

LuaObjectives.cpp File Reference


Detailed Description

Function to create and modify mission objectives.

System: Scar

>


Functions

udword Objective_Add (const char *name, udword type)
 Adds a new objective, returns the objective ID name: it can be a localized string of format "$nnnn" type: OT_Primary or OT_Secondary.

udword Objective_GetState (udword id)
 returns the current state of an objective: OS_Off, OS_Incomplete, OS_Complete, OS_Failed id : Objective value ID returned by Objective_Add

void Objective_SetState (udword id, udword state)
 Sets the state of an objective: id : Objective value ID returned by Objective_Add state: OS_Off, OS_Incomplete, OS_Complete, OS_Failed.

void Objective_Select (udword id)
 Ability to Select an objective in the Objective List id : Objective value ID returned by Objective_Add.

void Objective_AddDescription (udword id, const char *descriptionid)
 Adds a description to an already valid objective id : Objective value ID returned by Objective_Add descriptionid: it can be a localized string of format "$nnnn".


Generated on Fri Oct 31 04:05:39 2003 for Scar by doxygen1.3-rc3