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

Comparing deliantra/server/include/define.h (file contents):
Revision 1.30 by root, Thu Dec 21 23:37:05 2006 UTC vs.
Revision 1.32 by root, Sat Dec 23 15:49:40 2006 UTC

421 * If any FLAG's are added or changed, make sure the flag_names structure in 421 * If any FLAG's are added or changed, make sure the flag_names structure in
422 * common/loader.l is updated. 422 * common/loader.l is updated.
423 */ 423 */
424 424
425/* Basic routines to do above */ 425/* Basic routines to do above */
426#define SET_FLAG(obj, flag) (obj)->flags[flag] = 1 426#define SET_FLAG(obj, flg) (obj)->flag [flg] = 1
427#define CLEAR_FLAG(obj, flag) (obj)->flags[flag] = 0 427#define CLEAR_FLAG(obj, flg) (obj)->flag [flg] = 0
428#define QUERY_FLAG(obj, flag) (obj)->flags[flag] 428#define QUERY_FLAG(obj, flg) (obj)->flag [flg]
429 429
430/* the flags */ 430/* the flags */
431 431
432#define FLAG_ALIVE 0 /* Object can fight (or be fought) */ 432#define FLAG_ALIVE 0 /* Object can fight (or be fought) */
433#define FLAG_WIZ 1 /* Object has special privilegies */ 433#define FLAG_WIZ 1 /* Object has special privilegies */
590#define FLAG_ACTIVATE_ON_RELEASE 106 /* connected object is activated when 'released' */ 590#define FLAG_ACTIVATE_ON_RELEASE 106 /* connected object is activated when 'released' */
591#define FLAG_IS_WATER 107 591#define FLAG_IS_WATER 107
592#define FLAG_CONTENT_ON_GEN 108 592#define FLAG_CONTENT_ON_GEN 108
593#define FLAG_IS_A_TEMPLATE 109 /* Object has no ingame life until instanciated */ 593#define FLAG_IS_A_TEMPLATE 109 /* Object has no ingame life until instanciated */
594#define FLAG_IS_BUILDABLE 110 /* Can build on item */ 594#define FLAG_IS_BUILDABLE 110 /* Can build on item */
595#define FLAG_AFK 111 /* Player is AFK */ 595
596#define NUM_FLAGS 111 /* Should always be equal to the last 596#define NUM_FLAGS 111 /* Should always be equal to the last
597 * defined flag. If you change this, 597 * defined flag + 1. If you change this,
598 * make sure you update the flag_links 598 * make sure you update the flag_links
599 * in common/loader.l 599 * in common/loader.l
600 */ 600 */
601 601
602/* Values can go up to 127 before the size of the flags array in the 602/* Values can go up to 127 before the size of the flags array in the

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines