Home

[Package Index | Mudlib Index | Effect Index]

File /std/basic/cute_look.c

This object handles all the inventory listing for rooms, when long() is called. It should convert like this: ({ /w/terano/womble#1234, /std/object#1324, /global/creator#2523 }) into "Lady Midnite is standing here.\nA key and a womble are floating happily.\n"

Written by Lynscar

Includes

This class includes the following files /include/position.h

Method index

Public Functions

These are functions that everyone can access.

.

    ignore_livings_in_inventory
    int ignore_livings_in_inventory()
    

    Returns the ignore_living flag. If livings are ignored, they are displayed the same way as non-livings, ie: by short alone. If they are not ignored, livings are displayed on a separate line and show their positions. NB: passing a value to the 'ignore_livings' parameter of query_contents overrides the ignore_living flag.
    • Returns:
      1 if livings are ignored, 0 if not.
    • See also:
      set_ignore_livings_in_inventory.c and query_contents .c
    list_contents
    void list_contents(string words)
    

    This method prints out the contents of the object matching.
    • Parameters:
      word - the string to match
        query_contents
        varargs string query_contents(string start,
                                      object * things,
                                      int ignore_living)
        

        This method returns a string contents of description of the container. NB: this_player() is _not_ included in the array if (s)he is present. The ignore_living flag tells us if we should process living objects as different or not. If we do not process them as different (as you do in room descriptions), then this flag should be 0. This is so that living objects can be kept an an inventory of a player without stuff it up. ie: Pets.
        • Parameters:
          start - the start message before the contents
          things - the things to give the message for
          ignore_living - treat livings differently
        • Returns:
          a string contents description
            set_ignore_livings_in_inventory
            void set_ignore_livings_in_inventory(int ignore)
            

            Sets the ignore_living flag. Default is 1.
            • Parameters:
              1 - to ignore livings, 0 not to
            • See also:
              query_contents.c and ignore_livings_in_inventory .c
Valid HTML 4.01 Transitional
Valid CSS!
Read More