Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

cMagic Class Reference

#include <cMagic.h>

List of all members.

Public Methods

 cMagic ()
 INDEX:. More...

virtual ~cMagic ()
bool HasSpell (CItem *book, int spellNum)
void AddSpell (CItem *book, int spellNum)
void RemoveSpell (CItem *book, int spellNum)
void LoadScript (void)
void SpellBook (cSocket *mSock)
bool GateCollision (CChar *s)
void GateDestruction (UI32 currenttime)
bool SelectSpell (cSocket *mSock, int num)
void doMoveEffect (int num, cBaseObject *target, CChar *source)
void doStaticEffect (CChar *source, int num)
void playSound (CChar *source, int num)
void DelReagents (CChar *s, reag_st reags)
void CastSpell (cSocket *s, CChar *caster)
bool CheckResist (CChar *attacker, CChar *defender, int circle)
void PoisonDamage (CChar *p, int posion)
void CheckFieldEffects2 (UI32 currenttime, CChar *c, char timecheck)
bool CheckParry (CChar *player, int circle)
bool CheckBook (int circle, int spell, CItem *i)
bool CheckReagents (CChar *s, const reag_st *reagents)
bool CheckMana (CChar *s, int num)
bool CheckStamina (CChar *s, int num)
bool CheckHealth (CChar *s, int num)
void Recall (cSocket *s)
void Mark (cSocket *s)
void Gate (cSocket *s)
void Heal (cSocket *s)
bool CheckMagicReflect (CChar *i)
void MagicDamage (CChar *p, int amount, CChar *attacker=NULL)
void SpellFail (cSocket *s)
void SubtractMana (CChar *s, int mana)
void SubtractStamina (CChar *s, int stamina)
void SubtractHealth (CChar *s, int health, int spellNum)
void MagicTrap (CChar *s, CItem *i)
void Polymorph (cSocket *s, int gmindex, int creaturenumer)
void BoxSpell (cSocket *s, CChar *caster, short int &x1, short int &x2, short int &y1, short int &y2, SI08 &z1, SI08 &z2)
void SummonMonster (cSocket *s, CChar *caster, UI16 id, char *monstername, UI16 color, SI16 x, SI16 y, SI08 z)
void PolymorphMenu (cSocket *s, int gmindex)

Private Methods

bool RegMsg (CChar *s, reag_st failmsg)
void Log (const char *spell, CChar *player1, CChar *player2, const char *extraInfo)

Private Attributes

UI32 spellCount


Constructor & Destructor Documentation

cMagic::cMagic  
 

INDEX:.

cMagic::~cMagic   [virtual]
 


Member Function Documentation

void cMagic::AddSpell CItem *   book,
int   spellNum
 

void cMagic::BoxSpell cSocket *   s,
CChar *   caster,
short int &   x1,
short int &   x2,
short int &   y1,
short int &   y2,
SI08 &   z1,
SI08 &   z2
 

void cMagic::CastSpell cSocket *   s,
CChar *   caster
 

bool cMagic::CheckBook int   circle,
int   spell,
CItem *   i
 

void cMagic::CheckFieldEffects2 UI32   currenttime,
CChar *   c,
char   timecheck
 

bool cMagic::CheckHealth CChar *   s,
int   num
 

bool cMagic::CheckMagicReflect CChar *   i
 

bool cMagic::CheckMana CChar *   s,
int   num
 

bool cMagic::CheckParry CChar *   player,
int   circle
 

bool cMagic::CheckReagents CChar *   s,
const reag_st *   reagents
 

bool cMagic::CheckResist CChar *   attacker,
CChar *   defender,
int   circle
 

bool cMagic::CheckStamina CChar *   s,
int   num
 

void cMagic::DelReagents CChar *   s,
reag_st   reags
 

void cMagic::Gate cSocket *   s
 

bool cMagic::GateCollision CChar *   s
 

void cMagic::GateDestruction UI32   currenttime
 

bool cMagic::HasSpell CItem *   book,
int   spellNum
 

void cMagic::Heal cSocket *   s
 

void cMagic::LoadScript void  
 

void cMagic::Log const char *   spell,
CChar *   player1,
CChar *   player2,
const char *   extraInfo
[private]
 

void cMagic::MagicDamage CChar *   p,
int   amount,
CChar *   attacker = NULL
 

void cMagic::MagicTrap CChar *   s,
CItem *   i
 

void cMagic::Mark cSocket *   s
 

void cMagic::PoisonDamage CChar *   p,
int   poison
 

void cMagic::Polymorph cSocket *   s,
int   gmindex,
int   creaturenumber
 

void cMagic::PolymorphMenu cSocket *   s,
int   gmindex
 

void cMagic::Recall cSocket *   s
 

bool cMagic::RegMsg CChar *   s,
reag_st   failmsg
[private]
 

void cMagic::RemoveSpell CItem *   book,
int   spellNum
 

bool cMagic::SelectSpell cSocket *   mSock,
int   num
 

void cMagic::SpellBook cSocket *   mSock
 

void cMagic::SpellFail cSocket *   s
 

void cMagic::SubtractHealth CChar *   s,
int   health,
int   spellNum
 

void cMagic::SubtractMana CChar *   s,
int   mana
 

void cMagic::SubtractStamina CChar *   s,
int   stamina
 

void cMagic::SummonMonster cSocket *   s,
CChar *   caster,
UI16   id,
char *   monstername,
UI16   colour,
SI16   x,
SI16   y,
SI08   z
 

void cMagic::doMoveEffect int   num,
cBaseObject *   target,
CChar *   source
 

void cMagic::doStaticEffect CChar *   source,
int   num
 

void cMagic::playSound CChar *   source,
int   num
 


Member Data Documentation

UI32 cMagic::spellCount [private]
 


The documentation for this class was generated from the following files:
Generated at Sun Sep 16 22:45:38 2001 for UOX3 by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001