/home/leaf/crossfire/server/branches/1.12/include/global.h File Reference
#include "includes.h"
#include "face.h"
#include "attack.h"
#include "material.h"
#include "living.h"
#include "object.h"
#include "map.h"
#include "tod.h"
#include "skills.h"
#include "newserver.h"
#include "player.h"
#include "treasure.h"
#include "commands.h"
#include "book.h"
#include "ob_methods.h"
#include "ob_types.h"
#include "artifact.h"
#include "god.h"
#include "race.h"
#include "recipe.h"
#include "spells.h"
#include "stringbuffer.h"
#include "libproto.h"
#include "sockproto.h"
#include "typesproto.h"
#include "plugin.h"
Go to the source code of this file.
Detailed Description
Global definitions: u/sint8, things like that.
Definition in file global.h.
Define Documentation
| #define CALLOC |
( |
x, |
|
|
y |
|
) |
calloc(x, y) |
| #define CFREE |
( |
x |
|
) |
free(x) |
| #define decrease_ob |
( |
xyz |
|
) |
decrease_ob_nr(xyz, 1) |
| #define FREE_AND_CLEAR |
( |
xyz |
|
) |
{ free((void *)xyz); xyz = NULL; } |
| #define FREE_AND_CLEAR_STR |
( |
xyz |
|
) |
{ free_string(xyz); xyz = NULL; } |
| #define FREE_AND_COPY |
( |
sv, |
|
|
nv |
|
) |
{ if (sv) free_string(sv); sv = add_string(nv); } |
| #define GET_ANIM_ID |
( |
ob |
|
) |
(ob->temp_animation_id ? ob->temp_animation_id : ob->animation_id) |
| #define GET_ANIMATION |
( |
ob, |
|
|
anim |
|
) |
(ob->temp_animation_id ? animations[ob->temp_animation_id].faces[anim] : animations[ob->animation_id].faces[anim]) |
| #define NAMLEN |
( |
dirent |
|
) |
(dirnet)->d_namlen |
| #define NROF_COMPRESS_METHODS 4 |
| #define NUM_FACINGS |
( |
ob |
|
) |
(ob->temp_animation_id ? animations[ob->temp_animation_id].facings : animations[ob->animation_id].facings) |
| #define ROTATE_RIGHT |
( |
c |
|
) |
if ((c)&01) (c) = ((c)>>1)+0x80000000; else (c) >>= 1; |
| #define SCRIPT_FIX_ACTIVATOR 2 |
| #define SCRIPT_FIX_NOTHING 0 |
| #define SET_ANIMATION |
( |
ob, |
|
|
newanim |
|
) |
{ if (ob->temp_animation_id) { ob->face = &new_faces[animations[ob->temp_animation_id].faces[newanim]]; } else { ob->face = &new_faces[animations[ob->animation_id].faces[newanim]]; } } |
| #define SINT32_MAX 2147483647 |
| #define UINT32_MAX 4294967295U |
Typedef Documentation
| typedef signed char sint8 |
| typedef unsigned char uint8 |
Variable Documentation
Following can just as easily be pointers, but it is easier to keep them like this.
Definition at line 66 of file image.c.
X offset when searching around a spot.
Definition at line 75 of file object.c.
Y offset when searching around a spot.
Definition at line 81 of file object.c.
Direction we're pointing on this spot.
Definition at line 93 of file object.c.
Ignores signals until init_done is true.
Definition at line 210 of file global.h.
Established connections for clients not yet playing. See the page on the login process for a description of its use.
Definition at line 68 of file init.c.
Gloabal variables:
Definition at line 46 of file time.c.
Number of spots around a location, including that location (except for 0)
Definition at line 87 of file object.c.
Used by various function to determine how often to save the character
?
Definition at line 56 of file time.c.
You unforunately need to looking in include/global.h to see what these correspond to.
Definition at line 48 of file init.c.
| const char* uncomp[NROF_COMPRESS_METHODS][3] |
This is a list of the suffix, uncompress and compress functions. Thus, if you have some other compress program you want to use, the only thing that needs to be done is to extended this. The first entry must be NULL - this is what is used for non compressed files.
Definition at line 593 of file porting.c.
If true, write warnings when failing to find archetypes when loading from file.
Definition at line 208 of file global.h.