--- deliantra/server/include/object.h 2007/09/30 20:22:19 1.151 +++ deliantra/server/include/object.h 2008/04/10 15:35:16 1.155 @@ -1,11 +1,11 @@ /* - * This file is part of Crossfire TRT, the Roguelike Realtime MORPG. + * This file is part of Deliantra, the Roguelike Realtime MMORPG. * - * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Crossfire TRT team + * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Deliantra team * Copyright (©) 2001,2007 Mark Wedel & Crossfire Development Team * Copyright (©) 1992,2007 Frank Tore Johansen * - * Crossfire TRT is free software: you can redistribute it and/or modify + * Deliantra is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. @@ -18,7 +18,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * - * The authors can be reached via e-mail to + * The authors can be reached via e-mail to */ #ifndef OBJECT_H @@ -67,6 +67,9 @@ extern Body_Locations body_locations[NUM_BODY_LOCATIONS]; +#define NUM_COINS 4 /* number of coin types */ +extern const char *const coins[NUM_COINS + 1]; + /* * Each object (this also means archetypes!) could have a few of these * "dangling" from it; this could also end up containing 'parse errors'. @@ -87,16 +90,16 @@ { uint64 seq; + static UUID cur; // last uuid generated + static void init (); + static UUID gen (); + UUID () { } UUID (uint64 seq) : seq(seq) { } operator uint64() { return seq; } void operator =(uint64 seq) { this->seq = seq; } }; -extern void init_uuid (); -extern UUID gen_uuid (); -extern const uint64 UUID_SKIP; - /* Definition for WILL_APPLY values. Replaces having harcoded values * sprinkled in the code. Note that some of these also replace fields * that were in the can_apply area. What is the point of having both @@ -582,6 +585,8 @@ MTH void link (); MTH void unlink (); + MTH object *instance (); + object_vector_index ACC (RW, archid); // index in archvector shstr ACC (RW, archname); /* More definite name, like "generate_kobold" */ bool ACC (RW, stub); // if true, this is an invalid archetype