Planeshift
psSpellCastGameEvent Class Reference

This event actually triggers a spell, after the casting wait time. More...

#include <psspell.h>

Public Member Functions

virtual void DeleteObjectCallback (iDeleteNotificationObject *object)
 
void Interrupt ()
 
 psSpellCastGameEvent (const psSpell *spell, gemActor *caster, gemObject *target, csTicks castingDuration, float max_range, float kFactor, float power, Client *client)
 
virtual void Trigger ()
 Abstract event processing function. More...
 
 ~psSpellCastGameEvent ()
 
- Public Member Functions inherited from psGameEvent
virtual bool CheckTrigger ()
 Called right before a Trigger is called. More...
 
const char * GetType ()
 Return the type that this event where created with. More...
 
virtual bool IsValid ()
 Return the valid flag. More...
 
bool operator< (const psGameEvent &other) const
 
bool operator== (const psGameEvent &other) const
 
bool operator> (const psGameEvent &other) const
 
 psGameEvent (csTicks ticks, int offsetticks, const char *newType)
 Construct a new game event. More...
 
void QueueEvent ()
 Publish the game event to the local program. More...
 
virtual void SetValid (bool valid)
 Set the valid flag. More...
 
virtual csString ToString () const
 Return a string with information about the event. More...
 
virtual ~psGameEvent ()
 
- Public Member Functions inherited from iDeleteObjectCallback
virtual ~iDeleteObjectCallback ()
 

Public Attributes

gemActorcaster
 Entity who casting this spell. More...
 
Clientclient
 The client that cast the spell, NULL if superclient. More...
 
csTicks duration
 
float kFactor
 
float max_range
 
float powerLevel
 
const psSpellspell
 The spell that is cast. More...
 
gemObjecttarget
 Entity who is target of this spell. More...
 
- Public Attributes inherited from psGameEvent
csTicks delayticks
 delay before the event starts More...
 
int id
 id value combined with ticks ensures uniqueness for tree More...
 
csTicks triggerticks
 ticks value when event should be triggered. More...
 
bool valid
 Set this to false if the trigger should not be fired. More...
 

Additional Inherited Members

- Static Public Attributes inherited from psGameEvent
static EventManagereventmanager
 
static int nextid
 id counter sequence More...
 

Detailed Description

This event actually triggers a spell, after the casting wait time.

Definition at line 202 of file psspell.h.

Constructor & Destructor Documentation

psSpellCastGameEvent::psSpellCastGameEvent ( const psSpell spell,
gemActor caster,
gemObject target,
csTicks  castingDuration,
float  max_range,
float  kFactor,
float  power,
Client client 
)
psSpellCastGameEvent::~psSpellCastGameEvent ( )

Member Function Documentation

virtual void psSpellCastGameEvent::DeleteObjectCallback ( iDeleteNotificationObject object)
virtual

Implements iDeleteObjectCallback.

void psSpellCastGameEvent::Interrupt ( )
virtual void psSpellCastGameEvent::Trigger ( )
virtual

Abstract event processing function.

This functino have to be overridden and will be called if CheckTrigger is ok at the time given in the constructor.

Implements psGameEvent.

Member Data Documentation

gemActor* psSpellCastGameEvent::caster

Entity who casting this spell.

Definition at line 205 of file psspell.h.

Client* psSpellCastGameEvent::client

The client that cast the spell, NULL if superclient.

Definition at line 207 of file psspell.h.

csTicks psSpellCastGameEvent::duration

Definition at line 213 of file psspell.h.

float psSpellCastGameEvent::kFactor

Definition at line 211 of file psspell.h.

float psSpellCastGameEvent::max_range

Definition at line 210 of file psspell.h.

float psSpellCastGameEvent::powerLevel

Definition at line 212 of file psspell.h.

const psSpell* psSpellCastGameEvent::spell

The spell that is cast.

Definition at line 208 of file psspell.h.

gemObject* psSpellCastGameEvent::target

Entity who is target of this spell.

Definition at line 206 of file psspell.h.


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