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.11 by root, Sat Dec 30 10:16:10 2006 UTC vs.
Revision 1.15 by root, Mon May 28 21:15:56 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
10typedef int32_t sint32; 32typedef int32_t sint32;
11typedef uint32_t uint32; 33typedef uint32_t uint32;
12typedef int64_t sint64; 34typedef int64_t sint64;
13typedef uint64_t uint64; 35typedef uint64_t uint64;
14 36
37typedef uint32_t tick_t;
38
39const int sint32_digits = 11; // number of digits an sint32 uses max.
40const int sint64_digits = 20;
41
15struct client_container; 42struct client_container;
16struct client; 43struct client;
17struct player; 44struct player;
18struct object; 45struct object;
19struct maptile; 46struct maptile;
20struct mapspace; 47struct mapspace;
21struct archetype; 48struct archetype;
22struct region; 49struct region;
23struct party; 50struct party;
24struct treasurelist; 51struct treasurelist;
52struct random_map_params;
25 53
26// could have used templates, but a more traditional C api 54// could have used templates, but a more traditional C api
27// uses more explicit typing which is ok for this purpose. 55// uses more explicit typing which is ok for this purpose.
28enum data_type 56enum data_type
29{ 57{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines