Planeshift
Public Member Functions | Protected Attributes

psPrereqOpAttackType Class Reference

Weapon requirement operator. More...

#include <psquestprereqops.h>

List of all members.

Public Member Functions

virtual bool Check (psCharacter *character)
 Check if the attack typespecification is correct.
virtual csPtr< psQuestPrereqOpCopy ()
 Copy the requirement operator.
virtual csString GetScriptOp ()
 Convert the requirement operator to a xml string.
 psPrereqOpAttackType (psAttackType *attackType)
 Construct an attack type.
virtual ~psPrereqOpAttackType ()
 Destructor.

Protected Attributes

psAttackTypeattackType
 The required attack Type.

Detailed Description

Weapon requirement operator.

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

Definition at line 1413 of file psquestprereqops.h.


Constructor & Destructor Documentation

psPrereqOpAttackType::psPrereqOpAttackType ( psAttackType attackType) [inline]

Construct an attack type.

Definition at line 1424 of file psquestprereqops.h.

virtual psPrereqOpAttackType::~psPrereqOpAttackType ( ) [inline, virtual]

Destructor.

Definition at line 1429 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

The required attack Type.

Definition at line 1416 of file psquestprereqops.h.


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