home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / d / d-linux.zip / dm-dist / doc / macro.doc < prev    next >
Text File  |  1991-03-01  |  2KB  |  73 lines

  1. /* ************************************************************************
  2. *  Copyright (C) 1990, 1991 - see 'license.doc' for complete information. *
  3. ************************************************************************* */
  4.  
  5. void CREATE(result, type, number) 
  6.  
  7. As in Pascal.. Halts on error..
  8.  
  9. int IS_SET(flag,bit) 
  10.  
  11. TRUE if the bit is set in flag, else FALSE.
  12.  
  13. int CAN_SEE(sub, obj)
  14.  
  15. TRUE if player 'sub' can see player 'obj', else FALSE.
  16.  
  17. int CAN_SEE_OBJ(sub, obj)                                               \
  18.  
  19. TRUE if player 'sub' can see object 'obj', else FALSE.
  20.  
  21. int GET_POS(ch)
  22.  
  23. Returns the position of the player 'ch'
  24.  
  25. int IS_SKILL(ch,skilltype)
  26.  
  27. Returns TRUE if player 'ch' endure skill 'skilltype', else FALSE.
  28.  
  29. const char *HSHR(ch) 
  30.  
  31. Returns players "his/her/its"
  32.  
  33. const char *HMHR(ch)
  34.  
  35. Returns players "him/her/it/"
  36.  
  37. char *GET_NAME(ch)
  38.  
  39. Returns players name
  40.  
  41. int IS_NPC(ch)
  42.  
  43. Returns TRUE if player is NPC, FALSE if player is PC
  44.  
  45. int GET_LEVEL(ch)
  46.  
  47. Returns the level of the player.
  48.  
  49. #define GET_CLASS(ch)
  50.  
  51. Returns the class of the player.
  52.  
  53. int CAN_WEAR(obj,part) (IS_SET((obj)->obj_flags.wear_flags,part))
  54.  
  55. Returns TRUE if object 'obj' can be "worn" on 'part', else FALSE.
  56.  
  57. int GET_ITEM_TYPE(obj) ((obj)->obj_flags.type_flag)
  58.  
  59. Returns item 'obj' type.
  60.  
  61. int IS_OBJ_STAT(obj,stat) (IS_SET((obj)->obj_flags.extra_flags,stat))
  62.  
  63. Returns TRUE if item 'obj' has status 'stat'.
  64.  
  65. char *CAP(char *str);
  66.  
  67. Changes the first character in the string pointed to by str to uppercase. 
  68. Returns str.
  69.  
  70. int OUTSIDE(ch)
  71.  
  72. Returns TRUE if ch is in an outdoor room.
  73.