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/amxscript.cpp File Reference

#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <string.h>
#include <time.h>
#include <assert.h>
#include "console.h"
#include "amx.h"
#include "amx_comp.h"
#include "common_libs.h"
#include "srvparms.h"
#include "amx_api.h"
#include "constants.h"
#include "target.h"
#include "globals.h"
#include "inlines.h"
#include "amxscript.h"

Defines

#define CONSOLE
#define CHECKAMXV   { if ((ServerScp::g_nEnableAMXScripts==0)||(s_nTmpEnableAMXScripts==0)) return; }
#define CHECKAMX   { if ((ServerScp::g_nEnableAMXScripts==0)||(s_nTmpEnableAMXScripts==0)) return 0; }
#define ISNUMERICTYPE(A)   ((A<7)&&(A!=AMXT_SPEECH))
#define FAIL   { ConOut ("[FAIL]\n"); return; }

Functions

int amx_InternalDebugProc (AMX *amx)
void core_Init (void)
void core_Exit (void)
int amx_SetStringUnicode (cell *dest, wstring &source)
int amx_GetStringUnicode (wstring &dest, cell *source)
void strupcase (char *s)
 Uppercases a string.

void strlocase (char *s)
 Lowercases a string.

void sigabort (int sig)
int amx_AbortProc (AMX *amx)
 abort procedure for amx

char * strMode (int a)
 converts a mode to a string

void check_Natives ()
 check the integrity of exported natives apis

void LoadOverrides (void)
 Loads override.amx (eventually building it) and override.scp.

void checkAmxSpeech (SERIAL chr, char *speech)
 checks speech from socket s for override invoking

std::string InvalidFunction ("InvalidFunction")

Variables

int g_nTraceMode
char g_strAmxSpeeches [256][256]
int g_nAmxSpeechPtr = 0
AMX_NATIVE_INFO nxw_API []
AMX_NATIVE_INFO console_Natives []
AMX_NATIVE_INFO core_Natives []
int g_nCurrentSocket
int s_nTmpEnableAMXScripts = 1
int g_nMoment = 0
int abortflagged = 0
 signal handler for amx debug interfaces

bool g_bByPass = false
AmxOverride g_Scripts [10][8192]

Define Documentation

#define CHECKAMX   { if ((ServerScp::g_nEnableAMXScripts==0)||(s_nTmpEnableAMXScripts==0)) return 0; }
 

#define CHECKAMXV   { if ((ServerScp::g_nEnableAMXScripts==0)||(s_nTmpEnableAMXScripts==0)) return; }
 

#define CONSOLE
 

file : amxscript.cpp

Project : Nox-Wizard

Author :

Purpose : Implementation of methods Amx for Script

#define FAIL   { ConOut ("[FAIL]\n"); return; }
 

#define ISNUMERICTYPE      ((A<7)&&(A!=AMXT_SPEECH))
 


Function Documentation

int amx_AbortProc AMX   amx [static]
 

abort procedure for amx

Author:
Xanathar
Returns:
static
Parameters:
amx  -- as default --

int amx_GetStringUnicode wstring &    dest,
cell   source
 

int amx_InternalDebugProc AMX   amx
 

int amx_SetStringUnicode cell   dest,
wstring &    source
 

void check_Natives  
 

check the integrity of exported natives apis

Author:
Xanathar

void checkAmxSpeech SERIAL    chr,
char *    speech
 

checks speech from socket s for override invoking

Author:
Xanathar
Parameters:
chr  player who spoken
speech  speech of socket s

void core_Exit void   
 

void core_Init void   
 

std::string InvalidFunction "InvalidFunction"   
 

void LoadOverrides void   
 

Loads override.amx (eventually building it) and override.scp.

Author:
Xanathar

void sigabort int    sig [static]
 

void strlocase char *    s [static]
 

Lowercases a string.

Author:
Xanathar
Returns:
static
Parameters:
s  the string

char* strMode int    a [static]
 

converts a mode to a string

Author:
Xanathar
Returns:
static
Parameters:
a  the moment

void strupcase char *    s [static]
 

Uppercases a string.

Author:
Xanathar
Returns:
static
Parameters:
s  the string


Variable Documentation

int abortflagged = 0
 

signal handler for amx debug interfaces

Author:
Xanathar
Returns:
static
Parameters:
sig  signal recvd

AMX_NATIVE_INFO console_Natives[]
 

AMX_NATIVE_INFO core_Natives[]
 

bool g_bByPass = false
 

int g_nAmxSpeechPtr = 0 [static]
 

int g_nCurrentSocket  
 

file : amxcback.cpp

Project : Nox-Wizard

Author :

Purpose : Implementation of Functions for AMX Callbacks and AMX Events

int g_nMoment = 0
 

int g_nTraceMode
 

AmxOverride g_Scripts[ 10 ][ 8192 ]
 

char g_strAmxSpeeches[256][256] [static]
 

AMX_NATIVE_INFO nxw_API[]
 

int s_nTmpEnableAMXScripts = 1 [static]
 

SourceForge.net Logo