Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

/home/groups/n/no/noxwizard/cvs/src/object.h File Reference

Declaration of class cObject. More...

#include <stdarg.h>
#include "constants.h"
#include "typedefs.h"
#include "amx/amxcback.h"
#include "tmpeff.h"
#include "basics.h"

Go to the source code of this file.

Compounds

class  cItemSpawner
class  cNpcSpawner
class  cObject
 Base class of cItem and cChar. More...

class  cSpawner
 spawner More...


Defines

#define ISVALIDPO(po)   ( ( po!=NULL && ( sizeof(*po) == sizeof(cObject) || sizeof(*po) == sizeof(cChar) || sizeof(*po) == sizeof(cItem) ) ) ? (po->getSerial32() > 0) : false )
#define VALIDATEPO(po)   if (!ISVALIDPO(po)) { LogWarning("a non-valid P_OBJECT pointer was used in %s:%d", basename(__FILE__), __LINE__); return; }
#define VALIDATEPOR(po, r)   if (!ISVALIDPO(po)) { LogWarning("a non-valid P_OBJECT pointer was used in %s:%d", basename(__FILE__), __LINE__); return r; }

Typedefs

typedef map< UI32, AmxEvent * > AmxEventMap
typedef slist< tempfx::cTempfxTempfxVector

Functions

bool operator== (Location a, Location b)
 == operator redefinition for Location

bool operator!= (Location a, Location b)
 != operator redefinition for Location


Detailed Description

Declaration of class cObject.

Author:
Anthalir

Define Documentation

#define ISVALIDPO po       ( ( po!=NULL && ( sizeof(*po) == sizeof(cObject) || sizeof(*po) == sizeof(cChar) || sizeof(*po) == sizeof(cItem) ) ) ? (po->getSerial32() > 0) : false )
 

#define VALIDATEPO po       if (!ISVALIDPO(po)) { LogWarning("a non-valid P_OBJECT pointer was used in %s:%d", basename(__FILE__), __LINE__); return; }
 

#define VALIDATEPOR po,
     if (!ISVALIDPO(po)) { LogWarning("a non-valid P_OBJECT pointer was used in %s:%d", basename(__FILE__), __LINE__); return r; }
 


Typedef Documentation

typedef map< UI32, AmxEvent* > AmxEventMap
 

typedef slist< tempfx::cTempfx > TempfxVector
 


Function Documentation

bool operator!= Location    a,
Location    b
[inline]
 

!= operator redefinition for Location

bool operator== Location    a,
Location    b
[inline]
 

== operator redefinition for Location

SourceForge.net Logo