Planeshift
|
Sit will make the NPC sit or stand. More...
#include <npcoperations.h>
Public Member Functions | |
virtual OperationResult | Advance (float timedelta, NPC *npc) |
virtual bool | Load (iDocumentNode *node) |
virtual ScriptOperation * | MakeCopy () |
virtual OperationResult | Run (NPC *npc, bool interrupted) |
SitOperation (bool sit) | |
virtual | ~SitOperation () |
Protected Attributes | |
float | remaining |
bool | sit |
True if sit false for stand. |
Sit will make the NPC sit or stand.
This class is the implementation of the sit operations used in behavior scripts for NPCS.
Examples:
<sit /> <standup />
Definition at line 1547 of file npcoperations.h.
SitOperation::SitOperation | ( | bool | sit | ) | [inline] |
Definition at line 1557 of file npcoperations.h.
virtual SitOperation::~SitOperation | ( | ) | [inline, virtual] |
Definition at line 1558 of file npcoperations.h.
virtual OperationResult SitOperation::Advance | ( | float | timedelta, |
NPC * | npc | ||
) | [virtual] |
Reimplemented from ScriptOperation.
virtual bool SitOperation::Load | ( | iDocumentNode * | node | ) | [virtual] |
Reimplemented from ScriptOperation.
virtual ScriptOperation* SitOperation::MakeCopy | ( | ) | [virtual] |
Implements ScriptOperation.
virtual OperationResult SitOperation::Run | ( | NPC * | npc, |
bool | interrupted | ||
) | [virtual] |
Implements ScriptOperation.
float SitOperation::remaining [protected] |
Definition at line 1553 of file npcoperations.h.
bool SitOperation::sit [protected] |
True if sit false for stand.
Definition at line 1550 of file npcoperations.h.