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

Comparing deliantra/server/include/object.h (file contents):
Revision 1.197 by root, Thu Jan 8 19:23:44 2009 UTC vs.
Revision 1.198 by root, Sun Jan 11 06:08:40 2009 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 (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team 4 * Copyright (©) 2005,2006,2007,2008,2009 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 * Copyright (©) 2001,2007 Mark Wedel & Crossfire Development Team 5 * Copyright (©) 2001,2007 Mark Wedel & Crossfire Development Team
6 * Copyright (©) 1992,2007 Frank Tore Johansen 6 * Copyright (©) 1992,2007 Frank Tore Johansen
7 * 7 *
8 * Deliantra is free software: you can redistribute it and/or modify 8 * Deliantra is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by 9 * it under the terms of the GNU General Public License as published by
291 shstr ACC (RW, lore); /* Obscure information about this object, */ 291 shstr ACC (RW, lore); /* Obscure information about this object, */
292 /* To get put into books and the like. */ 292 /* To get put into books and the like. */
293 shstr ACC (RW, custom_name); /* Custom name assigned by player */ 293 shstr ACC (RW, custom_name); /* Custom name assigned by player */
294}; 294};
295 295
296const char *query_weight (const object *op);
297const char *query_short_name (const object *op);
298const char *query_name (const object *op);
299const char *query_base_name (const object *op, int plural);
300
296struct object : zero_initialised, object_copy 301struct object : zero_initialised, object_copy
297{ 302{
298 // These variables are not changed by ->copy_to 303 // These variables are not changed by ->copy_to
299 maptile *ACC (RW, map); /* Pointer to the map in which this object is present */ 304 maptile *ACC (RW, map); /* Pointer to the map in which this object is present */
300 305
586 591
587 MTH std::string long_desc (object *who = 0); 592 MTH std::string long_desc (object *who = 0);
588 MTH std::string describe_monster (object *who = 0); 593 MTH std::string describe_monster (object *who = 0);
589 MTH std::string describe_item (object *who = 0); 594 MTH std::string describe_item (object *who = 0);
590 MTH std::string describe (object *who = 0); 595 MTH std::string describe (object *who = 0);
596
597 MTH const char *query_weight () { return ::query_weight (this); }
598 MTH const char *query_name () { return ::query_name (this); }
599 MTH const char *query_short_name () { return ::query_short_name (this); }
600 MTH const char *query_base_name (bool plural) { return ::query_base_name (this, plural); }
591 601
592 // If this object has no extra parts but should have them, 602 // If this object has no extra parts but should have them,
593 // add them, effectively expanding heads into multipart 603 // add them, effectively expanding heads into multipart
594 // objects. This method only works on objects not inserted 604 // objects. This method only works on objects not inserted
595 // anywhere. 605 // anywhere.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines