Pol  Revision:cb584c9
uconst.h
Go to the documentation of this file.
1 
11 #ifndef __UCONST_H
12 #define __UCONST_H
13 
14 #include "../clib/rawtypes.h"
15 
16 namespace Pol
17 {
18 namespace Core
19 {
20 enum UGENDER : u8
21 {
24 };
25 
26 enum URACE : u8
27 {
29  RACE_ELF = 1,
31 };
32 
33 /* Character Facings:
34  N^
35  7 0 1
36  6 * 2
37  5 4 3
38  */
39 
40 enum UFACING : u8
41 {
42  FACING_N = 0,
43  FACING_NE = 1,
44  FACING_E = 2,
45  FACING_SE = 3,
46  FACING_S = 4,
47  FACING_SW = 5,
48  FACING_W = 6,
50 };
51 
52 
53 enum UTEXTTYPE : u8
54 {
61 };
62 
63 
64 /* how to validate these values (and how range checking works on the client):
65  tell the client about a character. Take your character to the spot that
66  character is standing on. Walk straight, 18 steps in any direction. Run back
67  to the spot. The character will still be there. If you walk 19 steps, the
68  client automatically removes the object - the server doesn't need to tell it to.
69  Simple rectangular distance is used - if the x's differ by <= 18, and the y's differ
70  by <= 18, you're in range. If either is out of range, you're out.
71  */
72 #define RANGE_VISUAL 18
73 #define RANGE_VISUAL_LARGE_BUILDINGS 18 // 31?
74 
75 
76 const unsigned VALID_ITEM_COLOR_MASK = 0x0FFF;
77 
78 
79 enum MOVEMODE : u8
80 {
86 };
87 
88 #define MAXBUFFER 2560
89 
90 #define MAX_CONTAINER_ITEMS 3200 // 0x3C packet maxsize 5+3200*20 ~= 0xFFFF
91 #define MAX_SLOTS 255
92 
93 #define MAX_STACK_ITEMS 60000L
94 #define MAX_WEIGHT 65535L
95 
96 const unsigned short DEFAULT_TEXT_FONT = 3;
97 const unsigned short DEFAULT_TEXT_COLOR = 0x3B2;
98 const unsigned short DEFAULT_TEXT_REQUIREDCMD = 0;
99 }
100 }
101 #endif /* UCONST_H */
unsigned char u8
Definition: rawtypes.h:25
const unsigned VALID_ITEM_COLOR_MASK
Definition: uconst.h:76
const unsigned short DEFAULT_TEXT_COLOR
Definition: uconst.h:97
UTEXTTYPE
Definition: uconst.h:53
const unsigned short DEFAULT_TEXT_FONT
Definition: uconst.h:96
MOVEMODE
Definition: uconst.h:79
const unsigned short DEFAULT_TEXT_REQUIREDCMD
Definition: uconst.h:98
Definition: berror.cpp:12