Planeshift
Public Member Functions | Protected Attributes

SitOperation Class Reference

Sit will make the NPC sit or stand. More...

#include <npcoperations.h>

List of all members.

Public Member Functions

virtual OperationResult Advance (float timedelta, NPC *npc)
virtual bool Load (iDocumentNode *node)
virtual ScriptOperationMakeCopy ()
virtual OperationResult Run (NPC *npc, bool interrupted)
 SitOperation (bool sit)
virtual ~SitOperation ()

Protected Attributes

float remaining
bool sit
 True if sit false for stand.

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Member Data Documentation

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.


The documentation for this class was generated from the following file: