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

Comparing deliantra/server/include/traits.h (file contents):
Revision 1.13 by root, Wed Apr 25 18:47:50 2007 UTC vs.
Revision 1.16 by root, Wed Jun 6 05:41:26 2007 UTC

1/*
2 * This file is part of Crossfire TRT, the Multiplayer Online Role Playing Game.
3 *
4 * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Crossfire TRT team
5 *
6 * Crossfire TRT is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the Free
8 * Software Foundation; either version 2 of the License, or (at your option)
9 * any later version.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with Crossfire TRT; if not, write to the Free Software Foundation, Inc. 51
18 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 *
20 * The authors can be reached via e-mail to <crossfire@schmorp.de>
21 */
22
1#ifndef TRAITS_H__ 23#ifndef TRAITS_H__
2#define TRAITS_H__ 24#define TRAITS_H__
3 25
4#include <inttypes.h> 26#include <inttypes.h>
5 27
12typedef int64_t sint64; 34typedef int64_t sint64;
13typedef uint64_t uint64; 35typedef uint64_t uint64;
14 36
15typedef uint32_t tick_t; 37typedef uint32_t tick_t;
16 38
39const int sint32_digits = 11; // number of digits an sint32 uses max.
40const int sint64_digits = 20;
41
17struct client_container; 42struct client_container;
18struct client; 43struct client;
19struct player; 44struct player;
20struct object; 45struct object;
21struct maptile; 46struct maptile;
23struct archetype; 48struct archetype;
24struct region; 49struct region;
25struct party; 50struct party;
26struct treasurelist; 51struct treasurelist;
27struct random_map_params; 52struct random_map_params;
53struct faceinfo;
28 54
29// could have used templates, but a more traditional C api 55// could have used templates, but a more traditional C api
30// uses more explicit typing which is ok for this purpose. 56// uses more explicit typing which is ok for this purpose.
31enum data_type 57enum data_type
32{ 58{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines