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/amx/amxcback.h

Go to the documentation of this file.
00001 /*
00013     -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
00014     || NoX-Wizard UO Server Emulator (NXW)                 [http://www.noxwizard.com]  ||
00015     ||                                                                         ||
00016     || This software is free software released under GPL2 license.             ||
00017     || You can find detailed license information in nox-wizard.cpp file.       ||
00018     ||                                                                         ||
00019     || For any question post to NoX-Wizard forums or mail staff@noxwizard.com  ||
00020     -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
00021 
00022     CHANGELOG:
00023     -----------------------------------------------------------------------------
00024     DATE                                        DEVELOPER                               DESCRIPTION
00025     -----------------------------------------------------------------------------
00026 
00027  ***********************************************************************************
00028  */
00031 #ifndef __AMXCBACK_H__
00032 #define __AMXCBACK_H__
00033 
00034 #include <string>
00035 #include <vector>
00036 using namespace std ;
00037 
00038 #include "client.h"
00039 
00040 void initAmxEvents(void);
00041 bool checkItemUsability(P_CHAR pc, P_ITEM pi, int type);
00042 
00043 
00044 
00049 class AmxEvent {
00050 private:
00051         bool dynamic;   
00052         bool valid;
00053         int  function;
00054         char *funcname; 
00055 public:
00056         class AmxEvent *listNext;
00057         class AmxEvent *hashNext;
00058         cell Call (int param1, int param2=-1, int param3=-1, int param4=-1, int param5=-1);
00059         char *getFuncName (void);
00060         bool shouldBeSaved(void) { return !dynamic; }
00061         AmxEvent(char *fnname, bool dyn);
00062         AmxEvent(int funidx);
00063 };
00064 
00065 AmxEvent* newAmxEvent(char *funcname, bool dynamic = false);
00066 
00067 
00068 
00069 
00070 #endif //__AMXCBACK_H__
SourceForge.net Logo