Planeshift
psPrereqOpAttackType Class Reference

Weapon requirement operator. More...

#include <psquestprereqops.h>

Public Member Functions

virtual bool Check (psCharacter *character)
 Check if the attack typespecification is correct. More...
 
virtual csPtr< psQuestPrereqOpCopy ()
 Copy the requirement operator. More...
 
virtual csString GetScriptOp ()
 Convert the requirement operator to a xml string. More...
 
 psPrereqOpAttackType (psAttackType *attackType)
 Construct an attack type. More...
 
virtual ~psPrereqOpAttackType ()
 Destructor. More...
 
- Public Member Functions inherited from psQuestPrereqOp
virtual csString GetScript ()
 Convert the prerequisite script to a xml string. More...
 
virtual ~psQuestPrereqOp ()
 Destructor for the prerequisite operator. More...
 

Protected Attributes

psAttackTypeattackType
 The required attack Type. More...
 

Detailed Description

Weapon requirement operator.

Checks for various attack type specs atm this is really only useable in the combat system.

Definition at line 1416 of file psquestprereqops.h.

Constructor & Destructor Documentation

psPrereqOpAttackType::psPrereqOpAttackType ( psAttackType attackType)
inline

Construct an attack type.

Definition at line 1427 of file psquestprereqops.h.

virtual psPrereqOpAttackType::~psPrereqOpAttackType ( )
inlinevirtual

Destructor.

Definition at line 1432 of file psquestprereqops.h.

Member Function Documentation

virtual bool psPrereqOpAttackType::Check ( psCharacter character)
virtual

Check if the attack typespecification is correct.

Parameters
characterThe character that are checking for a requirement
Returns
True if specs are correct.

Implements psQuestPrereqOp.

virtual csPtr<psQuestPrereqOp> psPrereqOpAttackType::Copy ( )
virtual

Copy the requirement operator.

Override this function to return a copy of the requirement operator.

Returns
Copy of the requirement operator.

Implements psQuestPrereqOp.

virtual csString psPrereqOpAttackType::GetScriptOp ( )
virtual

Convert the requirement operator to a xml string.

Convert the operator into the xml string: <attacktype name="[attack type name]">

Returns
XML string for the requirement operator.

Implements psQuestPrereqOp.

Member Data Documentation

psAttackType* psPrereqOpAttackType::attackType
protected

The required attack Type.

Definition at line 1419 of file psquestprereqops.h.


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