ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/global.h
(Generate patch)

Comparing deliantra/server/include/global.h (file contents):
Revision 1.98 by root, Wed Nov 16 23:42:00 2016 UTC vs.
Revision 1.104 by root, Wed Dec 5 21:18:37 2018 UTC

1/* 1/*
2 * This file is part of Deliantra, the Roguelike Realtime MMORPG. 2 * This file is part of Deliantra, the Roguelike Realtime MMORPG.
3 * 3 *
4 * Copyright (©) 2017,2018 Marc Alexander Lehmann / the Deliantra team
4 * Copyright (©) 2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016 Marc Alexander Lehmann / Robin Redeker / the Deliantra team 5 * Copyright (©) 2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 * Copyright (©) 2002 Mark Wedel & Crossfire Development Team 6 * Copyright (©) 2002 Mark Wedel & Crossfire Development Team
6 * Copyright (©) 1992 Frank Tore Johansen 7 * Copyright (©) 1992 Frank Tore Johansen
7 * 8 *
8 * Deliantra is free software: you can redistribute it and/or modify it under 9 * Deliantra is free software: you can redistribute it and/or modify it under
38#define MTH 39#define MTH
39#define GENCONST_IV(patterns) 40#define GENCONST_IV(patterns)
40 41
41#include "includes.h" 42#include "includes.h"
42#include "config.h" 43#include "config.h"
43#include "compiler.h" 44#include "ecb.h"
44#include "define.h" 45#include "define.h"
45#include "traits.h" 46#include "traits.h"
46 47
47#ifndef TRUE 48#ifndef TRUE
48#define TRUE 1 49#define TRUE 1
50 51
51#ifndef FALSE 52#ifndef FALSE
52#define FALSE 0 53#define FALSE 0
53#endif 54#endif
54 55
55extern short freearr_x[SIZEOFFREE], freearr_y[SIZEOFFREE]; 56extern int freearr_x[SIZEOFFREE];
57extern int freearr_y[SIZEOFFREE];
56extern int freedir[SIZEOFFREE]; 58extern int freedir[SIZEOFFREE];
57extern int rightof_x[9], rightof_y[9]; 59extern int rightof_x[9], rightof_y[9];
58extern int leftof_x[9], leftof_y[9]; 60extern int leftof_x[9], leftof_y[9];
59 61
60extern sint64 levels [MAXNUMLEVELS]; 62extern sint64 levels [MAXNUMLEVELS];
148EXTERN shstr first_map_ext_path; /* Path used for per-race start maps */ 150EXTERN shstr first_map_ext_path; /* Path used for per-race start maps */
149 151
150EXTERN long ob_count; 152EXTERN long ob_count;
151 153
152extern dynbuf_text msg_dynbuf; // a dynbuf for text messages and other temporary data 154extern dynbuf_text msg_dynbuf; // a dynbuf for text messages and other temporary data
153
154/* do not use these in new code, see object.h::animation */
155#define SET_ANIMATION(ob,frame) ob->set_anim_frame (frame)
156#define NUM_ANIMATIONS(ob) (ob)->anim_frames ()
157#define NUM_FACINGS(ob) (ob)->anim_facings ()
158
159// used only by treasure.C, does not handle null arch ptrs
160#define IS_ARCH(arch,name) ((arch)->archname == shstr_ ## name)
161 155
162extern void emergency_save (); 156extern void emergency_save ();
163 157
164#include "libproto.h" 158#include "libproto.h"
165#include "sockproto.h" 159#include "sockproto.h"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines