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

#include "nxwcommn.h"
#include "network.h"
#include "itemid.h"
#include "sndpkg.h"
#include "srvparms.h"
#include "debug.h"
#include "amx/amxcback.h"
#include "trigger.h"
#include "magic.h"
#include "house.h"
#include "npcai.h"
#include "layer.h"
#include "mount.h"
#include "nxw_utils.h"
#include "data.h"
#include "boats.h"
#include "books.h"
#include "set.h"
#include "dbl_single_click.h"
#include "titles.h"
#include "rcvpkg.h"
#include "map.h"
#include "items.h"
#include "chars.h"
#include "basics.h"
#include "inlines.h"
#include "skills.h"
#include "classes.h"
#include "range.h"
#include "scp_parser.h"
#include "nox-wizard.h"
#include "utils.h"
#include "fishing.h"
#include "spawn.h"

Defines

#define CASE(FUNC)   else if( ( pi->FUNC() ) )
#define CASEOR(A, B)   else if( (pi->A())||(pi->B()) )

Functions

bool Item_ToolWearOut (NXWSOCKET s, P_ITEM pi)
 apply wear out to item, delete if necessary apply wear out to item, delete if necessary

void doubleclick_itemid (NXWSOCKET s, P_CHAR pc, P_ITEM pi, P_ITEM pack)
void doubleclick (NXWCLIENT ps)
 Double click.

void target_selectdyevat (NXWCLIENT ps, P_TARGET t)
void target_dyevat (NXWCLIENT ps, P_TARGET t)
void singleclick (NXWSOCKET s)
 Single click.

void dbl_click_character (NXWCLIENT ps, P_CHAR target)
 Double clicks over PC/NPCs.


Define Documentation

#define CASE FUNC       else if( ( pi->FUNC() ) )
 

#define CASEOR A,
     else if( (pi->A())||(pi->B()) )
 


Function Documentation

void dbl_click_character NXWCLIENT    ps,
P_CHAR    target
 

Double clicks over PC/NPCs.

Parameters:
ps  clientof player who click
target  pointer to the pc/npc clicked

void doubleclick NXWCLIENT    ps
 

Double click.

Author:
Ripper, rewrite by Endymion
Parameters:
ps  client of player dbclick
Note:
Completely redone by Morrolan 20-07-99
Warning:
I use a define CASE for make more readable the code, if you change name of P_ITEM pi chage also the macro
Todo:
los

void doubleclick_itemid NXWSOCKET    s,
P_CHAR    pc,
P_ITEM    pi,
P_ITEM    pack
[static]
 

bool Item_ToolWearOut NXWSOCKET    s,
P_ITEM    pi
[static]
 

apply wear out to item, delete if necessary apply wear out to item, delete if necessary

Author:
Ripper, rewritten by Luxor
Returns:
bool
Parameters:
s  socket of player who wear out the item
pi  pointer to item to wear out

void singleclick NXWSOCKET    s
 

Single click.

Author:
Ripper
Parameters:
s  socket of player who click

void target_dyevat NXWCLIENT    ps,
P_TARGET    t
 

void target_selectdyevat NXWCLIENT    ps,
P_TARGET    t
 

SourceForge.net Logo