Public Member Functions | Public Attributes

CNpcTask Class Reference

Inherits INpcTask.

List of all members.

Public Member Functions

 CNpcTask (INpcSchedule& parentSchedule)
 CNpcTask (string& name, INpcSchedule& parentSchedule)
void Init (bool keepParent=false)
NpcTaskType get_Type ()
string get_Name ()
string get_FullName ()
array< uint8 > get_Hours ()
array< uint8 > get_Minutes ()
INpcSchedule@ ParentSchedule ()
uint GetActions (array< INpcTaskAction@>& actionsList)
void Save (Buffer& buffer)
void Load (Buffer& buffer)
void AddAction (NpcTaskActionType type, FTaskAction& function, bool requireMap) final
void AddAction (NpcTaskActionType type, FTaskAction& function, array< uint8 > data, bool requireMap) final
INpcTask@ Roll (uint max)
INpcTask@ Container_Open (uint16 pid, uint16 hexX, uint16 hexY, uint anim2)
INpcTask@ Container_Close (uint16 pid, uint16 hexX, uint16 hexY, uint anim2)
INpcTask@ Container_OpenNear (uint anim2)
INpcTask@ Container_CloseNear (uint anim2)
INpcTask@ EditItem_Update ()
INpcTask@ EditItem_SetFlag (uint flag)
INpcTask@ EditItem_UnsetFlag (uint flag)
INpcTask@ EditItem_Flags (uint flags)
INpcTask@ EditItem_PicMap (string& picmap)
INpcTask@ EditItem_SetScript (string& script)
INpcTask@ EditItem_SetEvent (int event, string& function)
INpcTask@ EditItem_PicInv (string& picinv)
INpcTask@ Home_Set (uint16 hexX, uint16 hexY, uint8 dir)
INpcTask@ Home_SetRandom (array< array< uint16 > > positions)
INpcTask@ Home_Save ()
INpcTask@ Home_Load ()
INpcTask@ Home_Reset ()
INpcTask@ If_Never ()
INpcTask@ If_Always ()
INpcTask@ If_TaskVarLower (string& name, int value)
INpcTask@ If_TaskVarLowerEqual (string& name, int value)
INpcTask@ If_TaskVarEqual (string& name, int value)
INpcTask@ If_TaskVarNotEqual (string& name, int value)
INpcTask@ If_TaskVarGreater (string& name, int value)
INpcTask@ If_TaskVarGreaterEqual (string& name, int value)
INpcTask@ If_Percent (uint8 percent)
INpcTask@ If_Night ()
INpcTask@ If_Day ()
INpcTask@ If_Morning ()
INpcTask@ If_Afternoon ()
INpcTask@ If_Evening ()
INpcTask@ If_Year (uint8 year)
INpcTask@ If_Month (uint8 month)
INpcTask@ If_DayOfMonth (uint8 day)
INpcTask@ If_Hour (uint8 hour)
INpcTask@ If_Minute (uint8 minute)
INpcTask@ If_Worldmap ()
INpcTask@ If_NotWorldmap ()
INpcTask@ If_MapPid (uint16 pid)
INpcTask@ If_MapPids (array< uint16 > pids)
INpcTask@ If_NotMapPid (uint16 pid)
INpcTask@ If_NotMapPids (array< uint16 > pids)
INpcTask@ If_ContainerOpened (uint16 hexX, uint16 hexY, uint16 pid)
INpcTask@ If_ContainerClosed (uint16 hexX, uint16 hexY, uint16 pid)
INpcTask@ If_ParamBaseLower (uint16 param, int value)
INpcTask@ If_ParamBaseLowerEqual (uint16 param, int value)
INpcTask@ If_ParamBaseEqual (uint16 param, int value)
INpcTask@ If_ParamBaseNotEqual (uint16 param, int value)
INpcTask@ If_ParamBaseGreater (uint16 param, int value)
INpcTask@ If_ParamBaseGreaterEqual (uint16 param, int value)
INpcTask@ If_ParamLower (uint16 param, int value)
INpcTask@ If_ParamLowerEqual (uint16 param, int value)
INpcTask@ If_ParamEqual (uint16 param, int value)
INpcTask@ If_ParamNotEqual (uint16 param, int value)
INpcTask@ If_ParamGreater (uint16 param, int value)
INpcTask@ If_ParamGreaterEqual (uint16 param, int value)
INpcTask@ EndIf ()
INpcTask@ Inventory_AddItem (uint16 pid)
INpcTask@ Inventory_AddItem (uint16 pid, uint count)
INpcTask@ Inventory_SubItem (uint16 pid)
INpcTask@ Inventory_SubItem (uint16 pid, uint count)
INpcTask@ Inventory_SetFavouriteItem (uint8 slot, uint16 pid)
INpcTask@ Inventory_UseFavouriteItem (uint8 slot, uint16 pid)
INpcTask@ Map_CreateItem (uint16 pid, uint16 hexX, uint16 hexY, uint count)
INpcTask@ Map_DeleteItem (uint16 pid, uint16 hexX, uint16 hexY)
INpcTask@ Say (uint8 sayType, string& text)
INpcTask@ Say_Wait (uint8 sayType, string& text)
INpcTask@ Say_TaskVar (string& name)
INpcTask@ Say_Random (uint8 sayType, array< string >& text)
INpcTask@ TaskVar_Delete (string& name)
INpcTask@ TaskVar_Set (string& name, int value)
INpcTask@ TaskVar_Add (string& name)
INpcTask@ TaskVar_Sub (string& name)
INpcTask@ TaskVar_Add (string& name, int value_add)
INpcTask@ TaskVar_Sub (string& name, int value_sub)
INpcTask@ TaskVar_SetRandom (string& name, int from, int to)
INpcTask@ TaskVar_AddRandom (string& name, int from, int to)
INpcTask@ TaskVar_SubRandom (string& name, int from, int to)
INpcTask@ CopyToGameVar (string& name, uint8 varType, uint16 varId, bool map)
INpcTask@ CopyFromGameVar (string& name, uint8 varType, uint16 varId, bool map)
INpcTask@ TaskVar_CopyToGlobalVar (string& name, uint16 GVAR)
INpcTask@ TaskVar_CopyFromGlobalVar (string& name, uint16 GVAR)
INpcTask@ TaskVar_CopyToLocationVar (string& name, uint16 LLVAR)
INpcTask@ TaskVar_CopyFromLocationVar (string& name, uint16 LLVAR)
INpcTask@ TaskVar_CopyToMapVar (string& name, uint16 LMVAR)
INpcTask@ TaskVar_CopyFromMapVar (string& name, uint16 LMVAR)
INpcTask@ TaskVar_CopyToCritterVar (string& name, uint16 LVAR)
INpcTask@ TaskVar_CopyFromCritterVar (string& name, uint16 LVAR)
INpcTask@ Wait (uint time)
INpcTask@ Wait_Random (uint min, uint max)
INpcTask@ Wait_Home ()
INpcTask@ Wait_FavouriteItem (uint8 slot)
INpcTask@ VerboseAction (string& text)
INpcTask@ DemandAnswer (uint8 sayType, string& text)
INpcTask@ Animate (uint anim2, bool clearSequence, bool delayPlay)
INpcTask@ Sleep ()
INpcTask@ WakeUp ()
INpcTask@ FixForcefield (uint16 hexX, uint16 hexY, uint anim2)
INpcTask@ Walk_Home (uint16 hexX, uint16 hexY, uint8 dir)
INpcTask@ Walk_Home (array< uint16 >& position)
INpcTask@ Walk_RandomHome (array< array< uint16 > > positions)
INpcTask@ Walk_Patrol (array< array< uint16 > >& patrol, bool saveHome)
INpcTask@ CustomAction (string& functionName, bool requireMap)

Public Attributes

string name
INpcSchedule@ parentSchedule
array< CNpcTaskAction@> actions
array< CNpcTaskAction@> actionsQueue
NpcTaskType type
array< uint8 > hours
array< uint8 > minutes
uint roll

Constructor & Destructor Documentation

CNpcTask ( INpcSchedule&  parentSchedule  ) 
CNpcTask ( string&  name,
INpcSchedule&  parentSchedule 
)

Member Function Documentation

void Init ( bool  keepParent = false  ) 
NpcTaskType get_Type (  ) 
string get_Name (  ) 
string get_FullName (  ) 
array<uint8> get_Hours (  ) 
array<uint8> get_Minutes (  ) 
INpcSchedule@ ParentSchedule (  ) 
uint GetActions ( array< INpcTaskAction@>&  actionsList  ) 

Implements INpcTask.

void Save ( Buffer&  buffer  ) 
void Load ( Buffer&  buffer  ) 
void AddAction ( NpcTaskActionType  type,
FTaskAction&  function,
bool  requireMap 
)
void AddAction ( NpcTaskActionType  type,
FTaskAction&  function,
array< uint8 >  data,
bool  requireMap 
)
INpcTask@ Roll ( uint  max  ) 

Implements INpcTask.

INpcTask@ Container_Open ( uint16  pid,
uint16  hexX,
uint16  hexY,
uint  anim2 
)

Implements INpcTask.

INpcTask@ Container_Close ( uint16  pid,
uint16  hexX,
uint16  hexY,
uint  anim2 
)

Implements INpcTask.

INpcTask@ Container_OpenNear ( uint  anim2  ) 

Implements INpcTask.

INpcTask@ Container_CloseNear ( uint  anim2  ) 

Implements INpcTask.

INpcTask@ EditItem_Update (  ) 

Implements INpcTask.

INpcTask@ EditItem_SetFlag ( uint  flag  ) 

Implements INpcTask.

INpcTask@ EditItem_UnsetFlag ( uint  flag  ) 

Implements INpcTask.

INpcTask@ EditItem_Flags ( uint  flags  ) 

Implements INpcTask.

INpcTask@ EditItem_PicMap ( string&  picmap  ) 

Implements INpcTask.

INpcTask@ EditItem_SetScript ( string&  script  ) 

Implements INpcTask.

INpcTask@ EditItem_SetEvent ( int  event,
string&  function 
)

Implements INpcTask.

INpcTask@ EditItem_PicInv ( string&  picinv  ) 

Implements INpcTask.

INpcTask@ Home_Set ( uint16  hexX,
uint16  hexY,
uint8  dir 
)

Implements INpcTask.

INpcTask@ Home_SetRandom ( array< array< uint16 > >  positions  ) 

Implements INpcTask.

INpcTask@ Home_Save (  ) 

Implements INpcTask.

INpcTask@ Home_Load (  ) 

Implements INpcTask.

INpcTask@ Home_Reset (  ) 

Implements INpcTask.

INpcTask@ If_Never (  ) 

Implements INpcTask.

INpcTask@ If_Always (  ) 

Implements INpcTask.

INpcTask@ If_TaskVarLower ( string&  name,
int  value 
)

Implements INpcTask.

INpcTask@ If_TaskVarLowerEqual ( string&  name,
int  value 
)

Implements INpcTask.

INpcTask@ If_TaskVarEqual ( string&  name,
int  value 
)

Implements INpcTask.

INpcTask@ If_TaskVarNotEqual ( string&  name,
int  value 
)

Implements INpcTask.

INpcTask@ If_TaskVarGreater ( string&  name,
int  value 
)

Implements INpcTask.

INpcTask@ If_TaskVarGreaterEqual ( string&  name,
int  value 
)

Implements INpcTask.

INpcTask@ If_Percent ( uint8  percent  ) 

Implements INpcTask.

INpcTask@ If_Night (  ) 

Implements INpcTask.

INpcTask@ If_Day (  ) 

Implements INpcTask.

INpcTask@ If_Morning (  ) 

Implements INpcTask.

INpcTask@ If_Afternoon (  ) 

Implements INpcTask.

INpcTask@ If_Evening (  ) 

Implements INpcTask.

INpcTask@ If_Year ( uint8  year  ) 

Implements INpcTask.

INpcTask@ If_Month ( uint8  month  ) 

Implements INpcTask.

INpcTask@ If_DayOfMonth ( uint8  day  ) 

Implements INpcTask.

INpcTask@ If_Hour ( uint8  hour  ) 

Implements INpcTask.

INpcTask@ If_Minute ( uint8  minute  ) 

Implements INpcTask.

INpcTask@ If_Worldmap (  ) 

Implements INpcTask.

INpcTask@ If_NotWorldmap (  ) 

Implements INpcTask.

INpcTask@ If_MapPid ( uint16  pid  ) 

Implements INpcTask.

INpcTask@ If_MapPids ( array< uint16 >  pids  ) 

Implements INpcTask.

INpcTask@ If_NotMapPid ( uint16  pid  ) 

Implements INpcTask.

INpcTask@ If_NotMapPids ( array< uint16 >  pids  ) 

Implements INpcTask.

INpcTask@ If_ContainerOpened ( uint16  hexX,
uint16  hexY,
uint16  pid 
)

Implements INpcTask.

INpcTask@ If_ContainerClosed ( uint16  hexX,
uint16  hexY,
uint16  pid 
)

Implements INpcTask.

INpcTask@ If_ParamBaseLower ( uint16  param,
int  value 
)

Implements INpcTask.

INpcTask@ If_ParamBaseLowerEqual ( uint16  param,
int  value 
)

Implements INpcTask.

INpcTask@ If_ParamBaseEqual ( uint16  param,
int  value 
)

Implements INpcTask.

INpcTask@ If_ParamBaseNotEqual ( uint16  param,
int  value 
)

Implements INpcTask.

INpcTask@ If_ParamBaseGreater ( uint16  param,
int  value 
)

Implements INpcTask.

INpcTask@ If_ParamBaseGreaterEqual ( uint16  param,
int  value 
)

Implements INpcTask.

INpcTask@ If_ParamLower ( uint16  param,
int  value 
)

Implements INpcTask.

INpcTask@ If_ParamLowerEqual ( uint16  param,
int  value 
)

Implements INpcTask.

INpcTask@ If_ParamEqual ( uint16  param,
int  value 
)

Implements INpcTask.

INpcTask@ If_ParamNotEqual ( uint16  param,
int  value 
)

Implements INpcTask.

INpcTask@ If_ParamGreater ( uint16  param,
int  value 
)

Implements INpcTask.

INpcTask@ If_ParamGreaterEqual ( uint16  param,
int  value 
)

Implements INpcTask.

INpcTask@ EndIf (  ) 

Implements INpcTask.

INpcTask@ Inventory_AddItem ( uint16  pid  ) 

Implements INpcTask.

INpcTask@ Inventory_AddItem ( uint16  pid,
uint  count 
)

Implements INpcTask.

INpcTask@ Inventory_SubItem ( uint16  pid  ) 

Implements INpcTask.

INpcTask@ Inventory_SubItem ( uint16  pid,
uint  count 
)

Implements INpcTask.

INpcTask@ Inventory_SetFavouriteItem ( uint8  slot,
uint16  pid 
)

Implements INpcTask.

INpcTask@ Inventory_UseFavouriteItem ( uint8  slot,
uint16  pid 
)

Implements INpcTask.

INpcTask@ Map_CreateItem ( uint16  pid,
uint16  hexX,
uint16  hexY,
uint  count 
)

Implements INpcTask.

INpcTask@ Map_DeleteItem ( uint16  pid,
uint16  hexX,
uint16  hexY 
)

Implements INpcTask.

INpcTask@ Say ( uint8  sayType,
string&  text 
)

Implements INpcTask.

INpcTask@ Say_Wait ( uint8  sayType,
string&  text 
)

Implements INpcTask.

INpcTask@ Say_TaskVar ( string&  name  ) 

Implements INpcTask.

INpcTask@ Say_Random ( uint8  sayType,
array< string >&  text 
)

Implements INpcTask.

INpcTask@ TaskVar_Delete ( string&  name  ) 

Implements INpcTask.

INpcTask@ TaskVar_Set ( string&  name,
int  value 
)

Implements INpcTask.

INpcTask@ TaskVar_Add ( string&  name  ) 

Implements INpcTask.

INpcTask@ TaskVar_Sub ( string&  name  ) 

Implements INpcTask.

INpcTask@ TaskVar_Add ( string&  name,
int  value_add 
)

Implements INpcTask.

INpcTask@ TaskVar_Sub ( string&  name,
int  value_sub 
)

Implements INpcTask.

INpcTask@ TaskVar_SetRandom ( string&  name,
int  from,
int  to 
)

Implements INpcTask.

INpcTask@ TaskVar_AddRandom ( string&  name,
int  from,
int  to 
)

Implements INpcTask.

INpcTask@ TaskVar_SubRandom ( string&  name,
int  from,
int  to 
)

Implements INpcTask.

INpcTask@ CopyToGameVar ( string&  name,
uint8  varType,
uint16  varId,
bool  map 
)
INpcTask@ CopyFromGameVar ( string&  name,
uint8  varType,
uint16  varId,
bool  map 
)
INpcTask@ TaskVar_CopyToGlobalVar ( string&  name,
uint16  GVAR 
)

Implements INpcTask.

INpcTask@ TaskVar_CopyFromGlobalVar ( string&  name,
uint16  GVAR 
)

Implements INpcTask.

INpcTask@ TaskVar_CopyToLocationVar ( string&  name,
uint16  LLVAR 
)

Implements INpcTask.

INpcTask@ TaskVar_CopyFromLocationVar ( string&  name,
uint16  LLVAR 
)

Implements INpcTask.

INpcTask@ TaskVar_CopyToMapVar ( string&  name,
uint16  LMVAR 
)

Implements INpcTask.

INpcTask@ TaskVar_CopyFromMapVar ( string&  name,
uint16  LMVAR 
)

Implements INpcTask.

INpcTask@ TaskVar_CopyToCritterVar ( string&  name,
uint16  LVAR 
)

Implements INpcTask.

INpcTask@ TaskVar_CopyFromCritterVar ( string&  name,
uint16  LVAR 
)

Implements INpcTask.

INpcTask@ Wait ( uint  time  ) 

Implements INpcTask.

INpcTask@ Wait_Random ( uint  min,
uint  max 
)

Implements INpcTask.

INpcTask@ Wait_Home (  ) 

Implements INpcTask.

INpcTask@ Wait_FavouriteItem ( uint8  slot  ) 

Implements INpcTask.

INpcTask@ VerboseAction ( string&  text  ) 

Implements INpcTask.

INpcTask@ DemandAnswer ( uint8  sayType,
string&  text 
)

Implements INpcTask.

INpcTask@ Animate ( uint  anim2,
bool  clearSequence,
bool  delayPlay 
)

Implements INpcTask.

INpcTask@ Sleep (  ) 

Implements INpcTask.

INpcTask@ WakeUp (  ) 

Implements INpcTask.

INpcTask@ FixForcefield ( uint16  hexX,
uint16  hexY,
uint  anim2 
)
INpcTask@ Walk_Home ( uint16  hexX,
uint16  hexY,
uint8  dir 
)

Implements INpcTask.

INpcTask@ Walk_Home ( array< uint16 >&  position  ) 

Implements INpcTask.

INpcTask@ Walk_RandomHome ( array< array< uint16 > >  positions  ) 

Implements INpcTask.

INpcTask@ Walk_Patrol ( array< array< uint16 > >&  patrol,
bool  saveHome 
)

Implements INpcTask.

INpcTask@ CustomAction ( string&  functionName,
bool  requireMap 
)

Implements INpcTask.


Member Data Documentation

NpcTaskType type
array<uint8> hours
array<uint8> minutes
uint roll