Crossfire Server, Branches 1.12  R18729
newclient.h File Reference
#include <stddef.h>
+ Include dependency graph for newclient.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  CS_Stats
 
struct  SockList
 

Macros

#define ANIM_FLAGS_MASK   0x6000
 
#define ANIM_MASK   0x1fff
 
#define ANIM_RANDOM   1<<13
 
#define ANIM_SYNC   2<<13
 
#define CF_FACE_BITMAP   1
 
#define CF_FACE_CACHE   0x10
 
#define CF_FACE_NONE   0
 
#define CF_FACE_PNG   3
 
#define CF_FACE_XPM   2
 
#define CS_NUM_SKILLS   50
 
#define CS_QUERY_HIDEINPUT   0x4
 
#define CS_QUERY_SINGLECHAR   0x2
 
#define CS_QUERY_YESNO   0x1
 
#define CS_SAY_GSAY   0x4
 
#define CS_SAY_NORMAL   0x1
 
#define CS_SAY_SHOUT   0x2
 
#define CS_STAT_AC   14
 
#define CS_STAT_ARMOUR   16
 
#define CS_STAT_CHA   10
 
#define CS_STAT_CON   9
 
#define CS_STAT_DAM   15
 
#define CS_STAT_DEX   8
 
#define CS_STAT_EXP   11
 
#define CS_STAT_EXP64   28
 
#define CS_STAT_FLAGS   25
 
#define CS_STAT_FOOD   18
 
#define CS_STAT_GRACE   23
 
#define CS_STAT_HP   1
 
#define CS_STAT_INT   6
 
#define CS_STAT_LEVEL   12
 
#define CS_STAT_MAXGRACE   24
 
#define CS_STAT_MAXHP   2
 
#define CS_STAT_MAXSP   4
 
#define CS_STAT_POW   22
 
#define CS_STAT_RANGE   20
 
#define CS_STAT_RES_ACID   106
 
#define CS_STAT_RES_BLIND   117
 
#define CS_STAT_RES_COLD   104
 
#define CS_STAT_RES_CONF   105
 
#define CS_STAT_RES_DEATH   115
 
#define CS_STAT_RES_DEPLETE   114
 
#define CS_STAT_RES_DRAIN   107
 
#define CS_STAT_RES_ELEC   103
 
#define CS_STAT_RES_FEAR   113
 
#define CS_STAT_RES_FIRE   102
 
#define CS_STAT_RES_GHOSTHIT   108
 
#define CS_STAT_RES_HOLYWORD   116
 
#define CS_STAT_RES_MAG   101
 
#define CS_STAT_RES_PARA   111
 
#define CS_STAT_RES_PHYS   100
 
#define CS_STAT_RES_POISON   109
 
#define CS_STAT_RES_SLOW   110
 
#define CS_STAT_RESIST_END   117
 
#define CS_STAT_RESIST_START   100
 
#define CS_STAT_SKILLEXP_AGILITY   118
 
#define CS_STAT_SKILLEXP_AGLEVEL   119
 
#define CS_STAT_SKILLEXP_END   129
 
#define CS_STAT_SKILLEXP_MAGIC   126
 
#define CS_STAT_SKILLEXP_MALEVEL   127
 
#define CS_STAT_SKILLEXP_MELEVEL   123
 
#define CS_STAT_SKILLEXP_MENTAL   122
 
#define CS_STAT_SKILLEXP_PELEVEL   121
 
#define CS_STAT_SKILLEXP_PERSONAL   120
 
#define CS_STAT_SKILLEXP_PHLEVEL   125
 
#define CS_STAT_SKILLEXP_PHYSIQUE   124
 
#define CS_STAT_SKILLEXP_START   118
 
#define CS_STAT_SKILLEXP_WILEVEL   129
 
#define CS_STAT_SKILLEXP_WISDOM   128
 
#define CS_STAT_SKILLINFO   140
 
#define CS_STAT_SP   3
 
#define CS_STAT_SPEED   17
 
#define CS_STAT_SPELL_ATTUNE   29
 
#define CS_STAT_SPELL_DENY   31
 
#define CS_STAT_SPELL_REPEL   30
 
#define CS_STAT_STR   5
 
#define CS_STAT_TITLE   21
 
#define CS_STAT_TURN_UNDEAD   112
 
#define CS_STAT_WC   13
 
#define CS_STAT_WEAP_SP   19
 
#define CS_STAT_WEIGHT_LIM   26
 
#define CS_STAT_WIS   7
 
#define EMI_HASMOREBITS   0x80
 
#define EMI_NOREDRAW   0x01
 
#define EMI_SMOOTH   0x02
 
#define F_APPLIED   0x000F
 
#define F_BLESSED   0x0100
 
#define F_CURSED   0x0800
 
#define F_DAMNED   0x1000
 
#define F_LOCATION   0x00F0
 
#define F_LOCKED   0x8000
 
#define F_MAGIC   0x0400
 
#define F_NOPICK   0x4000
 
#define F_OPEN   0x2000
 
#define F_UNPAID   0x0200
 
#define FACE_COLOR_MASK   0xf
 
#define FACE_FLOOR   0x80
 
#define FACE_IS_ANIM   1<<15
 
#define FACE_WALL
 
#define FLOAT_MULTF   100000.0
 
#define FLOAT_MULTI   100000
 
#define MAP2_COORD_ENCODE(x, y, flags)   ((((x)+MAP2_COORD_OFFSET)&0x3f)<<10|(((y)+MAP2_COORD_OFFSET)&0x3f)<<4|(flags&0x0f))
 
#define MAP2_COORD_OFFSET   15
 
#define MSG_SUBTYPE_NONE   0
 
#define MSG_TYPE_ADMIN   8
 
#define MSG_TYPE_ADMIN_DM   4 /* DM related admin actions */
 
#define MSG_TYPE_ADMIN_HISCORE   5 /* Hiscore list */
 
#define MSG_TYPE_ADMIN_LOADSAVE   6 /* load/save operations */
 
#define MSG_TYPE_ADMIN_LOGIN   7 /* login messages/errors */
 
#define MSG_TYPE_ADMIN_NEWS   2
 
#define MSG_TYPE_ADMIN_PLAYER   3 /* Player coming/going/death */
 
#define MSG_TYPE_ADMIN_RULES   1
 
#define MSG_TYPE_ADMIN_VERSION   8 /* version info */
 
#define MSG_TYPE_APPLY   13 /* Applying objects */
 
#define MSG_TYPE_APPLY_BADBODY   7 /* Don't have body to use object */
 
#define MSG_TYPE_APPLY_BUILD   9 /* Build related actions */
 
#define MSG_TYPE_APPLY_CURSED   5 /* Applied a cursed object (BAD) */
 
#define MSG_TYPE_APPLY_ERROR   1
 
#define MSG_TYPE_APPLY_FAILURE   4 /* Apply OK, but no/bad result */
 
#define MSG_TYPE_APPLY_PROHIBITION   8 /* Class/god prohibiiton on obj */
 
#define MSG_TYPE_APPLY_SUCCESS   3 /* Was able to apply object */
 
#define MSG_TYPE_APPLY_TRAP   6 /* Have activated a trap */
 
#define MSG_TYPE_APPLY_UNAPPLY   2 /* Unapply an object */
 
#define MSG_TYPE_ATTACK   14 /* Attack related messages */
 
#define MSG_TYPE_ATTACK_DID_HIT   1 /* Player hit something else */
 
#define MSG_TYPE_ATTACK_DID_KILL   4 /* Player killed something */
 
#define MSG_TYPE_ATTACK_FUMBLE   3 /* Player fumbled attack */
 
#define MSG_TYPE_ATTACK_MISS   9 /* attack didn't hit */
 
#define MSG_TYPE_ATTACK_NOATTACK   7 /* You avoid attacking */
 
#define MSG_TYPE_ATTACK_NOKEY   6 /* Keys are like attacks, so... */
 
#define MSG_TYPE_ATTACK_PET_DIED   5 /* Pet was killed */
 
#define MSG_TYPE_ATTACK_PET_HIT   2 /* Players pet hit something else */
 
#define MSG_TYPE_ATTACK_PUSHED   8 /* Pushed a friendly player */
 
#define MSG_TYPE_ATTRIBUTE   11 /* Changes to attributes (stats, */
 
#define MSG_TYPE_ATTRIBUTE_ATTACKTYPE_GAIN   1 /* Atacktypes here refer to */
 
#define MSG_TYPE_ATTRIBUTE_ATTACKTYPE_LOSS   2 /* the player gaining or */
 
#define MSG_TYPE_ATTRIBUTE_BAD_EFFECT_END   8 /* effects to the player */
 
#define MSG_TYPE_ATTRIBUTE_BAD_EFFECT_START   7 /* The start/end of bad */
 
#define MSG_TYPE_ATTRIBUTE_GOD   15 /* changing god info */
 
#define MSG_TYPE_ATTRIBUTE_GOOD_EFFECT_END   14 /* good effects to the player */
 
#define MSG_TYPE_ATTRIBUTE_GOOD_EFFECT_START   13 /* Like bad effects, but for */
 
#define MSG_TYPE_ATTRIBUTE_LEVEL_GAIN   11 /* Gaining/losing of levels */
 
#define MSG_TYPE_ATTRIBUTE_LEVEL_LOSS   12
 
#define MSG_TYPE_ATTRIBUTE_MOVE   5 /* A change in the movement */
 
#define MSG_TYPE_ATTRIBUTE_PROTECTION_GAIN   3 /* Protections in this */
 
#define MSG_TYPE_ATTRIBUTE_PROTECTION_LOSS   4 /* context are pretty */
 
#define MSG_TYPE_ATTRIBUTE_RACE   6 /* Racial related changes */
 
#define MSG_TYPE_ATTRIBUTE_STAT_GAIN   9 /* Start/end of stat changes */
 
#define MSG_TYPE_ATTRIBUTE_STAT_LOSS   10
 
#define MSG_TYPE_BOOK   1
 
#define MSG_TYPE_BOOK_CLASP_1   1
 
#define MSG_TYPE_BOOK_CLASP_2   2
 
#define MSG_TYPE_BOOK_ELEGANT_1   3
 
#define MSG_TYPE_BOOK_ELEGANT_2   4
 
#define MSG_TYPE_BOOK_QUARTO_1   5
 
#define MSG_TYPE_BOOK_QUARTO_2   6
 
#define MSG_TYPE_BOOK_SPELL_EVOKER   7
 
#define MSG_TYPE_BOOK_SPELL_PRAYER   8
 
#define MSG_TYPE_BOOK_SPELL_PYRO   9
 
#define MSG_TYPE_BOOK_SPELL_SORCERER   10
 
#define MSG_TYPE_BOOK_SPELL_SUMMONER   11
 
#define MSG_TYPE_CARD   2
 
#define MSG_TYPE_CARD_ELEGANT_1   4
 
#define MSG_TYPE_CARD_ELEGANT_2   5
 
#define MSG_TYPE_CARD_ELEGANT_3   6
 
#define MSG_TYPE_CARD_MONEY_1   10
 
#define MSG_TYPE_CARD_MONEY_2   11
 
#define MSG_TYPE_CARD_MONEY_3   12
 
#define MSG_TYPE_CARD_SIMPLE_1   1
 
#define MSG_TYPE_CARD_SIMPLE_2   2
 
#define MSG_TYPE_CARD_SIMPLE_3   3
 
#define MSG_TYPE_CARD_STRANGE_1   7
 
#define MSG_TYPE_CARD_STRANGE_2   8
 
#define MSG_TYPE_CARD_STRANGE_3   9
 
#define MSG_TYPE_COMMAND   10 /* Responses to commands, eg, who */
 
#define MSG_TYPE_COMMAND_BODY   3
 
#define MSG_TYPE_COMMAND_CONFIG   7 /* bowmode, petmode, applymode */
 
#define MSG_TYPE_COMMAND_DEBUG   10 /* Various debug type commands */
 
#define MSG_TYPE_COMMAND_DM   17 /* DM related commands */
 
#define MSG_TYPE_COMMAND_ERROR   11 /* Bad syntax/can't use command */
 
#define MSG_TYPE_COMMAND_EXAMINE   14 /* Player examining something */
 
#define MSG_TYPE_COMMAND_FAILURE   13 /* Failed result from command */
 
#define MSG_TYPE_COMMAND_HELP   16 /* Help related information */
 
#define MSG_TYPE_COMMAND_INFO   8 /* Generic info - resistances, etc */
 
#define MSG_TYPE_COMMAND_INVENTORY   15 /* Inventory listing */
 
#define MSG_TYPE_COMMAND_MALLOC   4
 
#define MSG_TYPE_COMMAND_MAPS   2
 
#define MSG_TYPE_COMMAND_NEWPLAYER   18 /* Create a new character - not */
 
#define MSG_TYPE_COMMAND_QUESTS   9 /* Quest info */
 
#define MSG_TYPE_COMMAND_STATISTICS   6
 
#define MSG_TYPE_COMMAND_SUCCESS   12 /* Successful result from command */
 
#define MSG_TYPE_COMMAND_WEATHER   5
 
#define MSG_TYPE_COMMAND_WHO   1
 
#define MSG_TYPE_COMMUNICATION   15 /* Communication between players */
 
#define MSG_TYPE_COMMUNICATION_CHAT   8 /* Party message */
 
#define MSG_TYPE_COMMUNICATION_EMOTE   5 /* Player emotes */
 
#define MSG_TYPE_COMMUNICATION_ME   3 /* Player me's a message */
 
#define MSG_TYPE_COMMUNICATION_PARTY   6 /* Party message */
 
#define MSG_TYPE_COMMUNICATION_RANDOM   1 /* Random event (coin toss) */
 
#define MSG_TYPE_COMMUNICATION_SAY   2 /* Player says something */
 
#define MSG_TYPE_COMMUNICATION_SHOUT   7 /* Party message */
 
#define MSG_TYPE_COMMUNICATION_TELL   4 /* Player tells something */
 
#define MSG_TYPE_DIALOG   6
 
#define MSG_TYPE_DIALOG_ALTAR   2 /* A message from an altar */
 
#define MSG_TYPE_DIALOG_MAGIC_MOUTH   3 /* Magic Mouth/Magic Ear */
 
#define MSG_TYPE_DIALOG_NPC   1 /* A message from the npc */
 
#define MSG_TYPE_ITEM   17 /* Item related information */
 
#define MSG_TYPE_ITEM_ADD   2 /* Item added to inv */
 
#define MSG_TYPE_ITEM_CHANGE   3 /* Item has changed in some way */
 
#define MSG_TYPE_ITEM_INFO   3 /* Information related to an item */
 
#define MSG_TYPE_ITEM_REMOVE   1 /* Item removed from inv */
 
#define MSG_TYPE_LAST   20
 
#define MSG_TYPE_MISC   18 /* Messages that don't go anyplace else */
 
#define MSG_TYPE_MONUMENT   5
 
#define MSG_TYPE_MONUMENT_GRAVESTONE_1   7
 
#define MSG_TYPE_MONUMENT_GRAVESTONE_2   8
 
#define MSG_TYPE_MONUMENT_GRAVESTONE_3   9
 
#define MSG_TYPE_MONUMENT_STATUE_1   4
 
#define MSG_TYPE_MONUMENT_STATUE_2   5
 
#define MSG_TYPE_MONUMENT_STATUE_3   6
 
#define MSG_TYPE_MONUMENT_STONE_1   1
 
#define MSG_TYPE_MONUMENT_STONE_2   2
 
#define MSG_TYPE_MONUMENT_STONE_3   3
 
#define MSG_TYPE_MONUMENT_WALL_1   10
 
#define MSG_TYPE_MONUMENT_WALL_2   11
 
#define MSG_TYPE_MONUMENT_WALL_3   12
 
#define MSG_TYPE_MOTD   7
 
#define MSG_TYPE_PAPER   3
 
#define MSG_TYPE_PAPER_ENVELOPE_1   8
 
#define MSG_TYPE_PAPER_ENVELOPE_2   9
 
#define MSG_TYPE_PAPER_LETTER_NEW_1   6
 
#define MSG_TYPE_PAPER_LETTER_NEW_2   7
 
#define MSG_TYPE_PAPER_LETTER_OLD_1   4
 
#define MSG_TYPE_PAPER_LETTER_OLD_2   5
 
#define MSG_TYPE_PAPER_NOTE_1   1
 
#define MSG_TYPE_PAPER_NOTE_2   2
 
#define MSG_TYPE_PAPER_NOTE_3   3
 
#define MSG_TYPE_PAPER_SCROLL_MAGIC   14
 
#define MSG_TYPE_PAPER_SCROLL_NEW_1   12
 
#define MSG_TYPE_PAPER_SCROLL_NEW_2   13
 
#define MSG_TYPE_PAPER_SCROLL_OLD_1   10
 
#define MSG_TYPE_PAPER_SCROLL_OLD_2   11
 
#define MSG_TYPE_SHOP   9
 
#define MSG_TYPE_SHOP_LISTING   1 /* Shop listings - inventory, */
 
#define MSG_TYPE_SHOP_MISC   4 /* Random messages */
 
#define MSG_TYPE_SHOP_PAYMENT   2 /* Messages about payment, lack */
 
#define MSG_TYPE_SHOP_SELL   3 /* Messages about selling items */
 
#define MSG_TYPE_SIGN   4
 
#define MSG_TYPE_SIGN_BASIC   1
 
#define MSG_TYPE_SIGN_DIR_BOTH   4
 
#define MSG_TYPE_SIGN_DIR_LEFT   2
 
#define MSG_TYPE_SIGN_DIR_RIGHT   3
 
#define MSG_TYPE_SKILL   12 /* Messages related to using skills */
 
#define MSG_TYPE_SKILL_ERROR   2 /* Doing something wrong */
 
#define MSG_TYPE_SKILL_FAILURE   4 /* Failure in using skill */
 
#define MSG_TYPE_SKILL_LIST   6 /* List of skills */
 
#define MSG_TYPE_SKILL_MISSING   1 /* Don't have the skill */
 
#define MSG_TYPE_SKILL_PRAY   5 /* Praying related messages */
 
#define MSG_TYPE_SKILL_SUCCESS   3 /* Successfully used skill */
 
#define MSG_TYPE_SPELL   16 /* Spell related info */
 
#define MSG_TYPE_SPELL_END   4 /* A spell ends */
 
#define MSG_TYPE_SPELL_ERROR   6 /* Spell failure messages */
 
#define MSG_TYPE_SPELL_FAILURE   3 /* Spell failure messages */
 
#define MSG_TYPE_SPELL_HEAL   1 /* Healing related spells */
 
#define MSG_TYPE_SPELL_INFO   9 /* random info about spell, not */
 
#define MSG_TYPE_SPELL_PERCEIVE_SELF   7 /* Perceive self messages */
 
#define MSG_TYPE_SPELL_PET   2 /* Pet related messages */
 
#define MSG_TYPE_SPELL_SUCCESS   5 /* Spell succeeded messages */
 
#define MSG_TYPE_SPELL_TARGET   8 /* Target of non attack spell */
 
#define MSG_TYPE_VICTIM   19 /* Something bad is happening to the player */
 
#define MSG_TYPE_VICTIM_DIED   5 /* Player died! */
 
#define MSG_TYPE_VICTIM_SPELL   4 /* Someone cast a bad spell on the player */
 
#define MSG_TYPE_VICTIM_STEAL   3 /* Someone tried to steal from the player */
 
#define MSG_TYPE_VICTIM_SWAMP   1 /* Player is sinking in a swamp */
 
#define MSG_TYPE_VICTIM_WAS_HIT   2 /* Player was hit by something */
 
#define MSG_TYPE_VICTIM_WAS_PUSHED   6 /* Player was pushed or attempted pushed */
 
#define NDI_ALL   0x200
 
#define NDI_ALL_DMS   0x400
 
#define NDI_BLACK   0
 
#define NDI_BLUE   5
 
#define NDI_BROWN   10
 
#define NDI_COLOR_MASK   0xff
 
#define NDI_DK_ORANGE   6
 
#define NDI_GOLD   11
 
#define NDI_GREEN   7
 
#define NDI_GREY   9
 
#define NDI_LT_GREEN   8
 
#define NDI_MAX_COLOR   12
 
#define NDI_NAVY   2
 
#define NDI_ORANGE   4
 
#define NDI_RED   3
 
#define NDI_TAN   12
 
#define NDI_UNIQUE   0x100
 
#define NDI_WHITE   1
 
#define SF_FIREON   0x01
 
#define SF_RUNON   0x02
 
#define SOUND_NORMAL   0
 
#define SOUND_SPELL   1
 
#define UPD_ALL   0xFF
 
#define UPD_ANIM   0x20
 
#define UPD_ANIMSPEED   0x40
 
#define UPD_FACE   0x08
 
#define UPD_FLAGS   0x02
 
#define UPD_LOCATION   0x01
 
#define UPD_NAME   0x10
 
#define UPD_NROF   0x80
 
#define UPD_SP_DAMAGE   0x04
 
#define UPD_SP_GRACE   0x02
 
#define UPD_SP_MANA   0x01
 
#define UPD_WEIGHT   0x04
 

Typedefs

typedef struct CS_Stats CS_Stats
 
typedef struct SockList SockList
 

Enumerations

enum  {
  a_none, a_readied, a_wielded, a_worn,
  a_active, a_applied
}
 

Variables

CS_Stats cst_lst
 
CS_Stats cst_tot
 

Detailed Description

Defines various flags that both the new client and newserver uses. These should never be changed, only expanded. Changing them will likely cause all old clients to not work properly. While called newclient, it is really used by both the client and server to keep some values the same.

Name format is CS_(command)_(flag) CS = Client/Server. (command) is protocol command, ie ITEM (flag) is the flag name

Ideally, this file should be the same between the server and the client. However, this often drifts apart because of a value that is only useful on the client and server. Generally, it isn't a problem to have a few extra #defines if this lets them stay in sync.

Given this file contains the constants that dictate what is sent between the server and client, keeping them in sync makes doing changes easier - modify this file in one place, copy it over.

Definition in file newclient.h.

Macro Definition Documentation

#define ANIM_FLAGS_MASK   0x6000

Definition at line 277 of file newclient.h.

#define ANIM_MASK   0x1fff

Definition at line 280 of file newclient.h.

#define ANIM_RANDOM   1<<13

Definition at line 273 of file newclient.h.

Referenced by map2_add_ob().

#define ANIM_SYNC   2<<13

Definition at line 274 of file newclient.h.

Referenced by map2_add_ob().

#define CF_FACE_BITMAP   1

Definition at line 238 of file newclient.h.

#define CF_FACE_CACHE   0x10

Definition at line 241 of file newclient.h.

Referenced by set_face_mode_cmd().

#define CF_FACE_NONE   0

Definition at line 237 of file newclient.h.

Referenced by set_face_mode_cmd().

#define CF_FACE_PNG   3

Definition at line 240 of file newclient.h.

Referenced by set_face_mode_cmd().

#define CF_FACE_XPM   2

Definition at line 239 of file newclient.h.

#define CS_NUM_SKILLS   50

Definition at line 171 of file newclient.h.

#define CS_QUERY_HIDEINPUT   0x4

Hide input being entered.

Definition at line 78 of file newclient.h.

Referenced by command_passwd(), confirm_password(), get_party_password(), get_password(), and receive_player_password().

#define CS_QUERY_SINGLECHAR   0x2

Single character response expected.

Definition at line 77 of file newclient.h.

Referenced by command_quit(), key_change_class(), key_roll_stat(), play_again(), and roll_again().

#define CS_QUERY_YESNO   0x1

Yes/no question.

Definition at line 76 of file newclient.h.

#define CS_SAY_GSAY   0x4

Text is group say command.

Definition at line 82 of file newclient.h.

#define CS_SAY_NORMAL   0x1

Normal say command.

Definition at line 80 of file newclient.h.

#define CS_SAY_SHOUT   0x2

Text is shouted.

Definition at line 81 of file newclient.h.

#define CS_STAT_AC   14

Definition at line 107 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_ARMOUR   16

Definition at line 109 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_CHA   10

Definition at line 103 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_CON   9

Definition at line 102 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_DAM   15

Definition at line 108 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_DEX   8

Definition at line 101 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_EXP   11

Definition at line 104 of file newclient.h.

#define CS_STAT_EXP64   28

Definition at line 120 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_FLAGS   25

Definition at line 118 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_FOOD   18

Definition at line 111 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_GRACE   23

Definition at line 116 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_HP   1

Definition at line 94 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_INT   6

Definition at line 99 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_LEVEL   12

Definition at line 105 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_MAXGRACE   24

Definition at line 117 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_MAXHP   2

Definition at line 95 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_MAXSP   4

Definition at line 97 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_POW   22

Definition at line 115 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_RANGE   20

Definition at line 113 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_RES_ACID   106

Definition at line 134 of file newclient.h.

#define CS_STAT_RES_BLIND   117

Definition at line 145 of file newclient.h.

#define CS_STAT_RES_COLD   104

Definition at line 132 of file newclient.h.

#define CS_STAT_RES_CONF   105

Definition at line 133 of file newclient.h.

#define CS_STAT_RES_DEATH   115

Definition at line 143 of file newclient.h.

#define CS_STAT_RES_DEPLETE   114

Definition at line 142 of file newclient.h.

#define CS_STAT_RES_DRAIN   107

Definition at line 135 of file newclient.h.

#define CS_STAT_RES_ELEC   103

Definition at line 131 of file newclient.h.

#define CS_STAT_RES_FEAR   113

Definition at line 141 of file newclient.h.

#define CS_STAT_RES_FIRE   102

Definition at line 130 of file newclient.h.

#define CS_STAT_RES_GHOSTHIT   108

Definition at line 136 of file newclient.h.

#define CS_STAT_RES_HOLYWORD   116

Definition at line 144 of file newclient.h.

#define CS_STAT_RES_MAG   101

Definition at line 129 of file newclient.h.

#define CS_STAT_RES_PARA   111

Definition at line 139 of file newclient.h.

#define CS_STAT_RES_PHYS   100

Definition at line 128 of file newclient.h.

#define CS_STAT_RES_POISON   109

Definition at line 137 of file newclient.h.

#define CS_STAT_RES_SLOW   110

Definition at line 138 of file newclient.h.

#define CS_STAT_RESIST_END   117

Definition at line 127 of file newclient.h.

#define CS_STAT_RESIST_START   100

Definition at line 126 of file newclient.h.

#define CS_STAT_SKILLEXP_AGILITY   118

Definition at line 150 of file newclient.h.

#define CS_STAT_SKILLEXP_AGLEVEL   119

Definition at line 151 of file newclient.h.

#define CS_STAT_SKILLEXP_END   129

Definition at line 149 of file newclient.h.

#define CS_STAT_SKILLEXP_MAGIC   126

Definition at line 158 of file newclient.h.

#define CS_STAT_SKILLEXP_MALEVEL   127

Definition at line 159 of file newclient.h.

#define CS_STAT_SKILLEXP_MELEVEL   123

Definition at line 155 of file newclient.h.

#define CS_STAT_SKILLEXP_MENTAL   122

Definition at line 154 of file newclient.h.

#define CS_STAT_SKILLEXP_PELEVEL   121

Definition at line 153 of file newclient.h.

#define CS_STAT_SKILLEXP_PERSONAL   120

Definition at line 152 of file newclient.h.

#define CS_STAT_SKILLEXP_PHLEVEL   125

Definition at line 157 of file newclient.h.

#define CS_STAT_SKILLEXP_PHYSIQUE   124

Definition at line 156 of file newclient.h.

#define CS_STAT_SKILLEXP_START   118

Definition at line 148 of file newclient.h.

#define CS_STAT_SKILLEXP_WILEVEL   129

Definition at line 161 of file newclient.h.

#define CS_STAT_SKILLEXP_WISDOM   128

Definition at line 160 of file newclient.h.

#define CS_STAT_SKILLINFO   140

CS_STAT_SKILLINFO is used as the starting index point. Skill number->name map is generated dynamically for the client, so a bunch of entries will be used here. CS_NUM_SKILLS does not match how many skills there really are - instead, it is used as a range of values so that the client can have some idea how many skill categories there may be.

Definition at line 170 of file newclient.h.

Referenced by append_spell(), esrv_update_stats(), and send_skill_info().

#define CS_STAT_SP   3

Definition at line 96 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_SPEED   17

Definition at line 110 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_SPELL_ATTUNE   29

Definition at line 121 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_SPELL_DENY   31

Definition at line 123 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_SPELL_REPEL   30

Definition at line 122 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_STR   5

Definition at line 98 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_TITLE   21

Definition at line 114 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_TURN_UNDEAD   112

Definition at line 140 of file newclient.h.

#define CS_STAT_WC   13

Definition at line 106 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_WEAP_SP   19

Definition at line 112 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_WEIGHT_LIM   26

Definition at line 119 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_WIS   7

Definition at line 100 of file newclient.h.

Referenced by esrv_update_stats().

#define EMI_HASMOREBITS   0x80

Definition at line 306 of file newclient.h.

#define EMI_NOREDRAW   0x01

Definition at line 298 of file newclient.h.

#define EMI_SMOOTH   0x02

Definition at line 299 of file newclient.h.

#define F_APPLIED   0x000F

Definition at line 226 of file newclient.h.

#define F_BLESSED   0x0100

Definition at line 235 of file newclient.h.

Referenced by query_flags().

#define F_CURSED   0x0800

Definition at line 230 of file newclient.h.

Referenced by query_flags().

#define F_DAMNED   0x1000

Definition at line 231 of file newclient.h.

Referenced by query_flags().

#define F_LOCATION   0x00F0

Definition at line 227 of file newclient.h.

#define F_LOCKED   0x8000

Definition at line 234 of file newclient.h.

Referenced by query_flags().

#define F_MAGIC   0x0400

Definition at line 229 of file newclient.h.

Referenced by query_flags().

#define F_NOPICK   0x4000

Definition at line 233 of file newclient.h.

Referenced by add_object_to_socklist().

#define F_OPEN   0x2000

Definition at line 232 of file newclient.h.

Referenced by query_flags().

#define F_UNPAID   0x0200

Definition at line 228 of file newclient.h.

Referenced by query_flags().

#define FACE_COLOR_MASK   0xf

Definition at line 252 of file newclient.h.

#define FACE_FLOOR   0x80

Used in the new_face structure on the magicmap field. Low bits are color information. For now, only high bit information we need is floor information.

Definition at line 248 of file newclient.h.

Referenced by draw_magic_map(), magic_mapping_mark(), magic_mapping_mark_recursive(), read_bmap_names(), and read_face_data().

#define FACE_IS_ANIM   1<<15

Definition at line 272 of file newclient.h.

#define FACE_WALL
Value:
0x40 /* Or'd into the color value by the server
* right before sending.
*/

Definition at line 249 of file newclient.h.

Referenced by magic_mapping_mark(), and magic_mapping_mark_recursive().

#define FLOAT_MULTF   100000.0

Definition at line 90 of file newclient.h.

#define FLOAT_MULTI   100000

These are multiplication values that should be used when changing floats to ints, and vice version. MULTI is integer representatin (float to int), MULTF is float, for going from int to float.

Definition at line 89 of file newclient.h.

#define MAP2_COORD_ENCODE (   x,
  y,
  flags 
)    ((((x)+MAP2_COORD_OFFSET)&0x3f)<<10|(((y)+MAP2_COORD_OFFSET)&0x3f)<<4|(flags&0x0f))

Encodes a (x, y) pair suitable for map2 parameters. The coordinates must be between [-MAP2_COORD_OFFSET..63-MAP2_COORD_OFFSET]. The flags value must be between [0..15].

Parameters
xthe x-coordinate
ythe y-coordinate
flagsthe flags value

Definition at line 74 of file newclient.h.

Referenced by check_space_for_heads(), and draw_client_map2().

#define MAP2_COORD_OFFSET   15

How much the x,y coordinates in the map2 are off from actual upper left corner. Necessary for light sources that may be off the edge of the visible map.

Definition at line 63 of file newclient.h.

#define MSG_TYPE_ADMIN_HISCORE   5 /* Hiscore list */

Definition at line 416 of file newclient.h.

Referenced by check_score(), and display_high_score().

#define MSG_TYPE_ADMIN_LOADSAVE   6 /* load/save operations */

Definition at line 417 of file newclient.h.

Referenced by emergency_save(), save_player(), and swap_map().

#define MSG_TYPE_ADMIN_LOGIN   7 /* login messages/errors */
#define MSG_TYPE_ADMIN_NEWS   2

Definition at line 413 of file newclient.h.

Referenced by send_news().

#define MSG_TYPE_ADMIN_PLAYER   3 /* Player coming/going/death */
#define MSG_TYPE_ADMIN_RULES   1

Definition at line 412 of file newclient.h.

Referenced by send_rules().

#define MSG_TYPE_ADMIN_VERSION   8 /* version info */

Definition at line 419 of file newclient.h.

Referenced by version().

#define MSG_TYPE_APPLY_BADBODY   7 /* Don't have body to use object */

Definition at line 522 of file newclient.h.

Referenced by apply_special().

#define MSG_TYPE_APPLY_BUILD   9 /* Build related actions */
#define MSG_TYPE_APPLY_CURSED   5 /* Applied a cursed object (BAD) */
#define MSG_TYPE_APPLY_PROHIBITION   8 /* Class/god prohibiiton on obj */

Definition at line 523 of file newclient.h.

Referenced by apply_special(), and check_race_restrictions().

#define MSG_TYPE_APPLY_TRAP   6 /* Have activated a trap */
#define MSG_TYPE_APPLY_UNAPPLY   2 /* Unapply an object */
#define MSG_TYPE_ATTACK   14 /* Attack related messages */
#define MSG_TYPE_ATTACK_DID_HIT   1 /* Player hit something else */
#define MSG_TYPE_ATTACK_DID_KILL   4 /* Player killed something */

Definition at line 530 of file newclient.h.

Referenced by kill_object().

#define MSG_TYPE_ATTACK_FUMBLE   3 /* Player fumbled attack */

Definition at line 529 of file newclient.h.

Referenced by attack_ob_simple().

#define MSG_TYPE_ATTACK_MISS   9 /* attack didn't hit */

Definition at line 535 of file newclient.h.

#define MSG_TYPE_ATTACK_NOATTACK   7 /* You avoid attacking */

Definition at line 533 of file newclient.h.

Referenced by move_player_attack().

#define MSG_TYPE_ATTACK_NOKEY   6 /* Keys are like attacks, so... */

Definition at line 532 of file newclient.h.

Referenced by blocked_link(), and player_attack_door().

#define MSG_TYPE_ATTACK_PET_DIED   5 /* Pet was killed */

Definition at line 531 of file newclient.h.

Referenced by kill_object().

#define MSG_TYPE_ATTACK_PET_HIT   2 /* Players pet hit something else */

Definition at line 528 of file newclient.h.

Referenced by attack_message(), and poison_living().

#define MSG_TYPE_ATTACK_PUSHED   8 /* Pushed a friendly player */

Definition at line 534 of file newclient.h.

#define MSG_TYPE_ATTRIBUTE_ATTACKTYPE_GAIN   1 /* Atacktypes here refer to */

Definition at line 466 of file newclient.h.

Referenced by change_abil().

#define MSG_TYPE_ATTRIBUTE_ATTACKTYPE_LOSS   2 /* the player gaining or */

Definition at line 467 of file newclient.h.

Referenced by change_abil().

#define MSG_TYPE_ATTRIBUTE_BAD_EFFECT_END   8 /* effects to the player */
#define MSG_TYPE_ATTRIBUTE_BAD_EFFECT_START   7 /* The start/end of bad */
#define MSG_TYPE_ATTRIBUTE_GOD   15 /* changing god info */
#define MSG_TYPE_ATTRIBUTE_GOOD_EFFECT_END   14 /* good effects to the player */

Definition at line 487 of file newclient.h.

Referenced by change_abil(), and hide().

#define MSG_TYPE_ATTRIBUTE_GOOD_EFFECT_START   13 /* Like bad effects, but for */

Definition at line 486 of file newclient.h.

Referenced by change_abil().

#define MSG_TYPE_ATTRIBUTE_LEVEL_GAIN   11 /* Gaining/losing of levels */

Definition at line 484 of file newclient.h.

Referenced by player_lvl_adj().

#define MSG_TYPE_ATTRIBUTE_LEVEL_LOSS   12

Definition at line 485 of file newclient.h.

Referenced by player_lvl_adj().

#define MSG_TYPE_ATTRIBUTE_MOVE   5 /* A change in the movement */

Definition at line 477 of file newclient.h.

Referenced by change_abil().

#define MSG_TYPE_ATTRIBUTE_PROTECTION_GAIN   3 /* Protections in this */

Definition at line 471 of file newclient.h.

Referenced by change_abil(), and dragon_eat_flesh().

#define MSG_TYPE_ATTRIBUTE_PROTECTION_LOSS   4 /* context are pretty */

Definition at line 472 of file newclient.h.

Referenced by change_abil().

#define MSG_TYPE_ATTRIBUTE_RACE   6 /* Racial related changes */

Definition at line 479 of file newclient.h.

Referenced by change_abil(), dragon_ability_gain(), dragon_eat_flesh(), and dragon_level_gain().

#define MSG_TYPE_ATTRIBUTE_STAT_GAIN   9 /* Start/end of stat changes */

Definition at line 482 of file newclient.h.

Referenced by change_abil(), and potion_type_apply().

#define MSG_TYPE_ATTRIBUTE_STAT_LOSS   10

Definition at line 483 of file newclient.h.

Referenced by change_abil(), drain_specific_stat(), and kill_player().

#define MSG_TYPE_BOOK   1

Definition at line 317 of file newclient.h.

#define MSG_TYPE_BOOK_CLASP_1   1

Definition at line 342 of file newclient.h.

#define MSG_TYPE_BOOK_CLASP_2   2

Definition at line 343 of file newclient.h.

#define MSG_TYPE_BOOK_ELEGANT_1   3

Definition at line 344 of file newclient.h.

#define MSG_TYPE_BOOK_ELEGANT_2   4

Definition at line 345 of file newclient.h.

#define MSG_TYPE_BOOK_QUARTO_1   5

Definition at line 346 of file newclient.h.

#define MSG_TYPE_BOOK_QUARTO_2   6

Definition at line 347 of file newclient.h.

#define MSG_TYPE_BOOK_SPELL_EVOKER   7

Definition at line 348 of file newclient.h.

#define MSG_TYPE_BOOK_SPELL_PRAYER   8

Definition at line 349 of file newclient.h.

#define MSG_TYPE_BOOK_SPELL_PYRO   9

Definition at line 350 of file newclient.h.

#define MSG_TYPE_BOOK_SPELL_SORCERER   10

Definition at line 351 of file newclient.h.

#define MSG_TYPE_BOOK_SPELL_SUMMONER   11

Definition at line 352 of file newclient.h.

#define MSG_TYPE_CARD   2

Definition at line 318 of file newclient.h.

#define MSG_TYPE_CARD_ELEGANT_1   4

Definition at line 358 of file newclient.h.

#define MSG_TYPE_CARD_ELEGANT_2   5

Definition at line 359 of file newclient.h.

#define MSG_TYPE_CARD_ELEGANT_3   6

Definition at line 360 of file newclient.h.

#define MSG_TYPE_CARD_MONEY_1   10

Definition at line 364 of file newclient.h.

#define MSG_TYPE_CARD_MONEY_2   11

Definition at line 365 of file newclient.h.

#define MSG_TYPE_CARD_MONEY_3   12

Definition at line 366 of file newclient.h.

#define MSG_TYPE_CARD_SIMPLE_1   1

Definition at line 355 of file newclient.h.

#define MSG_TYPE_CARD_SIMPLE_2   2

Definition at line 356 of file newclient.h.

#define MSG_TYPE_CARD_SIMPLE_3   3

Definition at line 357 of file newclient.h.

#define MSG_TYPE_CARD_STRANGE_1   7

Definition at line 361 of file newclient.h.

#define MSG_TYPE_CARD_STRANGE_2   8

Definition at line 362 of file newclient.h.

#define MSG_TYPE_CARD_STRANGE_3   9

Definition at line 363 of file newclient.h.

#define MSG_TYPE_COMMAND   10 /* Responses to commands, eg, who */

Definition at line 326 of file newclient.h.

Referenced by arch_info(), basic_emote(), change_spell(), check_login(), check_pick(), check_score(), command_abil(), command_addexp(), command_afk(), command_apply(), command_applymode(), command_arrest(), command_banish(), command_body(), command_bowmode(), command_brace(), command_cast_spell(), command_create(), command_debug(), command_diff(), command_drop(), command_dropall(), command_dump(), command_dumpbelow(), command_empty(), command_examine(), command_explore(), command_fire(), command_forget_spell(), command_free(), command_freeze(), command_goto(), command_gsay(), command_help(), command_insert_into(), command_inventory(), command_invisible(), command_kill_pets(), command_language(), command_learn_spell_or_prayer(), command_listen(), command_loadplugin(), command_loadtest(), command_lock_item(), command_mark(), command_mon_aggr(), command_nowiz(), command_output_count(), command_output_sync(), command_overlay_reset(), command_overlay_save(), command_party(), command_party_rejoin(), command_patch(), command_peaceful(), command_petmode(), command_pickup(), command_players(), command_possess(), command_remove(), command_rename_item(), command_reply(), command_reset(), command_resistances(), command_rskill(), command_run(), command_save(), command_search_items(), command_setgod(), command_showpets(), command_sound(), command_speed(), command_stack_clear(), command_stack_list(), command_statistics(), command_stats(), command_strings(), command_style_map_info(), command_summon(), command_take(), command_teleport(), command_tell_all(), command_title(), command_toggle_shout(), command_unloadplugin(), command_use(), command_usekeys(), command_uskill(), command_whereabouts(), command_wimpy(), command_wizcast(), command_wizpass(), current_map_info(), current_region_info(), display_high_score(), display_new_pickup(), display_who_entry(), dm_stack_peek(), dm_stack_pop(), dm_stack_push(), do_tell(), do_wizard_dm(), do_wizard_hide(), drop(), drop_object(), empty_container(), enter_exit(), enter_fixed_template_map(), enter_map(), enter_unique_map(), examine(), examine_monster(), execute_newserver_command(), fire(), fire_bow(), fire_misc_object(), form_party(), get_dm_object(), get_other_player_from_name(), get_spell_by_name(), help_topics(), inventory(), key_change_class(), key_roll_stat(), list_players(), lock_item_cmd(), look_at(), malloc_info(), map_info(), mark_item_cmd(), new_player_cmd(), party_help(), pick_up(), pick_up_object(), plugins_display_list(), print_los(), print_tod(), push_ob(), put_object_in_sack(), receive_party_password(), receive_player_name(), receive_player_password(), recursive_roll(), sack_can_hold(), set_pickup_mode(), show_commands(), show_matching_spells(), swap_stat(), time_info(), trap_disarm(), and trap_see().

#define MSG_TYPE_COMMAND_BODY   3

Definition at line 439 of file newclient.h.

Referenced by command_body().

#define MSG_TYPE_COMMAND_CONFIG   7 /* bowmode, petmode, applymode */
#define MSG_TYPE_COMMAND_DEBUG   10 /* Various debug type commands */
#define MSG_TYPE_COMMAND_EXAMINE   14 /* Player examining something */

Definition at line 450 of file newclient.h.

Referenced by examine(), examine_monster(), and look_at().

#define MSG_TYPE_COMMAND_FAILURE   13 /* Failed result from command */
#define MSG_TYPE_COMMAND_HELP   16 /* Help related information */

Definition at line 452 of file newclient.h.

Referenced by party_help().

#define MSG_TYPE_COMMAND_INFO   8 /* Generic info - resistances, etc */
#define MSG_TYPE_COMMAND_INVENTORY   15 /* Inventory listing */

Definition at line 451 of file newclient.h.

Referenced by inventory().

#define MSG_TYPE_COMMAND_MALLOC   4

Definition at line 440 of file newclient.h.

Referenced by malloc_info().

#define MSG_TYPE_COMMAND_MAPS   2

Definition at line 438 of file newclient.h.

Referenced by command_style_map_info(), and map_info().

#define MSG_TYPE_COMMAND_NEWPLAYER   18 /* Create a new character - not */

Definition at line 454 of file newclient.h.

Referenced by key_change_class(), key_roll_stat(), and swap_stat().

#define MSG_TYPE_COMMAND_QUESTS   9 /* Quest info */

Definition at line 445 of file newclient.h.

#define MSG_TYPE_COMMAND_STATISTICS   6

Definition at line 442 of file newclient.h.

Referenced by command_statistics().

#define MSG_TYPE_COMMAND_WEATHER   5

Definition at line 441 of file newclient.h.

#define MSG_TYPE_COMMAND_WHO   1

Definition at line 437 of file newclient.h.

Referenced by display_who_entry(), and list_players().

#define MSG_TYPE_COMMUNICATION   15 /* Communication between players */
#define MSG_TYPE_COMMUNICATION_CHAT   8 /* Party message */

Definition at line 544 of file newclient.h.

Referenced by command_chat().

#define MSG_TYPE_COMMUNICATION_EMOTE   5 /* Player emotes */

Definition at line 541 of file newclient.h.

Referenced by basic_emote().

#define MSG_TYPE_COMMUNICATION_ME   3 /* Player me's a message */

Definition at line 539 of file newclient.h.

Referenced by command_me().

#define MSG_TYPE_COMMUNICATION_PARTY   6 /* Party message */

Definition at line 542 of file newclient.h.

Referenced by command_party(), and send_party_message().

#define MSG_TYPE_COMMUNICATION_RANDOM   1 /* Random event (coin toss) */

Definition at line 537 of file newclient.h.

Referenced by command_cointoss().

#define MSG_TYPE_COMMUNICATION_SAY   2 /* Player says something */

Definition at line 538 of file newclient.h.

Referenced by communicate(), and do_talk_npc().

#define MSG_TYPE_COMMUNICATION_SHOUT   7 /* Party message */

Definition at line 543 of file newclient.h.

Referenced by command_shout().

#define MSG_TYPE_COMMUNICATION_TELL   4 /* Player tells something */

Definition at line 540 of file newclient.h.

Referenced by command_reply(), and do_tell().

#define MSG_TYPE_DIALOG   6

Definition at line 322 of file newclient.h.

Referenced by do_talk_npc(), npc_say(), and operate_altar().

#define MSG_TYPE_DIALOG_ALTAR   2 /* A message from an altar */

Definition at line 406 of file newclient.h.

Referenced by operate_altar().

#define MSG_TYPE_DIALOG_MAGIC_MOUTH   3 /* Magic Mouth/Magic Ear */

Definition at line 407 of file newclient.h.

Referenced by do_talk_npc().

#define MSG_TYPE_DIALOG_NPC   1 /* A message from the npc */

Definition at line 405 of file newclient.h.

Referenced by npc_say().

#define MSG_TYPE_ITEM_ADD   2 /* Item added to inv */

Definition at line 558 of file newclient.h.

Referenced by dragon_ability_gain(), god_gives_present(), and god_intervention().

#define MSG_TYPE_ITEM_CHANGE   3 /* Item has changed in some way */
#define MSG_TYPE_ITEM_INFO   3 /* Information related to an item */

Definition at line 560 of file newclient.h.

Referenced by cast_identify(), do_skill_ident2(), find_key(), and god_enchants_weapon().

#define MSG_TYPE_ITEM_REMOVE   1 /* Item removed from inv */
#define MSG_TYPE_LAST   20

Definition at line 337 of file newclient.h.

Referenced by command_strings(), and toggle_extended_text_cmd().

#define MSG_TYPE_MISC   18 /* Messages that don't go anyplace else */
#define MSG_TYPE_MONUMENT   5

Definition at line 321 of file newclient.h.

#define MSG_TYPE_MONUMENT_GRAVESTONE_1   7

Definition at line 397 of file newclient.h.

#define MSG_TYPE_MONUMENT_GRAVESTONE_2   8

Definition at line 398 of file newclient.h.

#define MSG_TYPE_MONUMENT_GRAVESTONE_3   9

Definition at line 399 of file newclient.h.

#define MSG_TYPE_MONUMENT_STATUE_1   4

Definition at line 394 of file newclient.h.

#define MSG_TYPE_MONUMENT_STATUE_2   5

Definition at line 395 of file newclient.h.

#define MSG_TYPE_MONUMENT_STATUE_3   6

Definition at line 396 of file newclient.h.

#define MSG_TYPE_MONUMENT_STONE_1   1

Definition at line 391 of file newclient.h.

#define MSG_TYPE_MONUMENT_STONE_2   2

Definition at line 392 of file newclient.h.

#define MSG_TYPE_MONUMENT_STONE_3   3

Definition at line 393 of file newclient.h.

#define MSG_TYPE_MONUMENT_WALL_1   10

Definition at line 400 of file newclient.h.

#define MSG_TYPE_MONUMENT_WALL_2   11

Definition at line 401 of file newclient.h.

#define MSG_TYPE_MONUMENT_WALL_3   12

Definition at line 402 of file newclient.h.

#define MSG_TYPE_MOTD   7

Definition at line 323 of file newclient.h.

Referenced by display_motd().

#define MSG_TYPE_PAPER   3

Definition at line 319 of file newclient.h.

#define MSG_TYPE_PAPER_ENVELOPE_1   8

Definition at line 376 of file newclient.h.

#define MSG_TYPE_PAPER_ENVELOPE_2   9

Definition at line 377 of file newclient.h.

#define MSG_TYPE_PAPER_LETTER_NEW_1   6

Definition at line 374 of file newclient.h.

#define MSG_TYPE_PAPER_LETTER_NEW_2   7

Definition at line 375 of file newclient.h.

#define MSG_TYPE_PAPER_LETTER_OLD_1   4

Definition at line 372 of file newclient.h.

#define MSG_TYPE_PAPER_LETTER_OLD_2   5

Definition at line 373 of file newclient.h.

#define MSG_TYPE_PAPER_NOTE_1   1

Definition at line 369 of file newclient.h.

#define MSG_TYPE_PAPER_NOTE_2   2

Definition at line 370 of file newclient.h.

#define MSG_TYPE_PAPER_NOTE_3   3

Definition at line 371 of file newclient.h.

#define MSG_TYPE_PAPER_SCROLL_MAGIC   14

Definition at line 382 of file newclient.h.

#define MSG_TYPE_PAPER_SCROLL_NEW_1   12

Definition at line 380 of file newclient.h.

#define MSG_TYPE_PAPER_SCROLL_NEW_2   13

Definition at line 381 of file newclient.h.

#define MSG_TYPE_PAPER_SCROLL_OLD_1   10

Definition at line 378 of file newclient.h.

#define MSG_TYPE_PAPER_SCROLL_OLD_2   11

Definition at line 379 of file newclient.h.

#define MSG_TYPE_SHOP   9
#define MSG_TYPE_SHOP_LISTING   1 /* Shop listings - inventory, */

Definition at line 426 of file newclient.h.

Referenced by describe_shop(), and shop_inventory_type_apply().

#define MSG_TYPE_SHOP_MISC   4 /* Random messages */

Definition at line 431 of file newclient.h.

Referenced by describe_shop(), and shop_mat_type_move_on().

#define MSG_TYPE_SHOP_PAYMENT   2 /* Messages about payment, lack */

Definition at line 428 of file newclient.h.

Referenced by can_pay(), and get_payment().

#define MSG_TYPE_SHOP_SELL   3 /* Messages about selling items */

Definition at line 430 of file newclient.h.

Referenced by sell_item().

#define MSG_TYPE_SIGN   4

Definition at line 320 of file newclient.h.

Referenced by trigger_connected().

#define MSG_TYPE_SIGN_BASIC   1

Definition at line 385 of file newclient.h.

#define MSG_TYPE_SIGN_DIR_BOTH   4

Definition at line 388 of file newclient.h.

#define MSG_TYPE_SIGN_DIR_LEFT   2

Definition at line 386 of file newclient.h.

#define MSG_TYPE_SIGN_DIR_RIGHT   3

Definition at line 387 of file newclient.h.

#define MSG_TYPE_SKILL_ERROR   2 /* Doing something wrong */
#define MSG_TYPE_SKILL_LIST   6 /* List of skills */

Definition at line 506 of file newclient.h.

Referenced by show_skills().

#define MSG_TYPE_SKILL_MISSING   1 /* Don't have the skill */
#define MSG_TYPE_SKILL_PRAY   5 /* Praying related messages */

Definition at line 505 of file newclient.h.

Referenced by god_intervention(), and god_removes_curse().

#define MSG_TYPE_SKILL_SUCCESS   3 /* Successfully used skill */
#define MSG_TYPE_SPELL_END   4 /* A spell ends */

Definition at line 549 of file newclient.h.

Referenced by handle_newcs_player().

#define MSG_TYPE_SPELL_HEAL   1 /* Healing related spells */

Definition at line 546 of file newclient.h.

Referenced by cast_heal(), and cure_disease().

#define MSG_TYPE_SPELL_INFO   9 /* random info about spell, not */

Definition at line 554 of file newclient.h.

Referenced by cast_create_obj(), cast_spell(), and check_spell_expiry().

#define MSG_TYPE_SPELL_PERCEIVE_SELF   7 /* Perceive self messages */

Definition at line 552 of file newclient.h.

Referenced by perceive_self().

#define MSG_TYPE_SPELL_PET   2 /* Pet related messages */

Definition at line 547 of file newclient.h.

Referenced by follow_owner(), move_golem(), and summon_golem().

#define MSG_TYPE_SPELL_TARGET   8 /* Target of non attack spell */

Definition at line 553 of file newclient.h.

Referenced by cast_bless(), and charge_mana_effect().

#define MSG_TYPE_VICTIM_DIED   5 /* Player died! */

Definition at line 570 of file newclient.h.

Referenced by kill_player().

#define MSG_TYPE_VICTIM_SPELL   4 /* Someone cast a bad spell on the player */

Definition at line 569 of file newclient.h.

Referenced by cast_curse(), charge_mana_effect(), and swap_random_stats().

#define MSG_TYPE_VICTIM_STEAL   3 /* Someone tried to steal from the player */

Definition at line 568 of file newclient.h.

Referenced by attempt_steal().

#define MSG_TYPE_VICTIM_SWAMP   1 /* Player is sinking in a swamp */

Definition at line 566 of file newclient.h.

Referenced by deep_swamp_type_move_on(), and deep_swamp_type_process().

#define MSG_TYPE_VICTIM_WAS_HIT   2 /* Player was hit by something */
#define MSG_TYPE_VICTIM_WAS_PUSHED   6 /* Player was pushed or attempted pushed */

Definition at line 571 of file newclient.h.

Referenced by push_ob().

#define SF_FIREON   0x01

These are used with CS_STAT_FLAGS above to communicate S->C what the server thinks the fireon & runon states are.

Definition at line 177 of file newclient.h.

Referenced by esrv_update_stats().

#define SF_RUNON   0x02

Definition at line 178 of file newclient.h.

Referenced by esrv_update_stats().

#define SOUND_NORMAL   0

Definition at line 269 of file newclient.h.

#define SOUND_SPELL   1

Definition at line 270 of file newclient.h.

#define UPD_ALL   0xFF

Definition at line 262 of file newclient.h.

Referenced by identify(), and send_changed_object().

#define UPD_ANIM   0x20

Definition at line 259 of file newclient.h.

Referenced by drain_wand_charge(), and esrv_update_item().

#define UPD_ANIMSPEED   0x40

Definition at line 260 of file newclient.h.

Referenced by esrv_update_item(), and power_crystal_type_apply().

#define UPD_FACE   0x08
#define UPD_LOCATION   0x01

Definition at line 254 of file newclient.h.

Referenced by esrv_update_item().

#define UPD_SP_DAMAGE   0x04

Definition at line 267 of file newclient.h.

Referenced by esrv_update_spells().

#define UPD_SP_GRACE   0x02

Definition at line 266 of file newclient.h.

Referenced by esrv_update_spells().

#define UPD_SP_MANA   0x01

Definition at line 265 of file newclient.h.

Referenced by esrv_update_spells().

Typedef Documentation

typedef struct CS_Stats CS_Stats

Statistics on server.

typedef struct SockList SockList

Contains the base information we use to make up a packet we want to send.

Enumeration Type Documentation

anonymous enum

Flags for the item command

Enumerator
a_none 
a_readied 
a_wielded 
a_worn 
a_active 
a_applied 

Definition at line 225 of file newclient.h.

Variable Documentation