[ Package Index | Mudlib Index | Effect Index ]

File /obj/clothing.c

This is the clothing file. COntains everything you need to make some nice clothing.

Inherits

This class inherits the following classes /std/basic/close_lock.c, /std/container.c and /std/basic/wearable.c

Includes

This class includes the following files /include/move_failures.h and /include/virtual.h

Method index

 o add_pocket(string, int)
This method adds a pocket onto the clothing.
 o break_me()
This method causes the object to be broken.
 o query_clothing()
This method will return true if the item is an item of clothing.
 o query_is_pair()
 o query_objective()
 o query_pocket_mess()
This method returns the message associated with the pocket.
 o query_pockets()
This method returns all the pockets on the object.
 o query_pronoun()
 o remove_pockets()
This method removes all pockets from the clothing.
 o replace_me()
 o set_is_pair(int)
 o set_pocket_mess(string)
This method sets the message associated with the pocket.
 o setup_clothing(int)
This method sets up the condition for the clothing.

Public Functions

These are functions that everyone can access.

.
 * add_pocket
void add_pocket(string type,
                int amount)
This method adds a pocket onto the clothing.

When setting the amount a pocket can hold use the following guide:

o==================o==============o========o
| Type of Clothing | example type | amount |
o==================o==============o========o
|   Aprons         |    front     |  8-10  |
|------------------+--------------+--------|
|   Coats          |     side     |  6-7   |
|                  |    inside    |   5    |
|------------------+--------------+--------|
|   Corsets        |   cleavage   |   2    |
|------------------+--------------+--------|
|   Dresses        |     side     |  2-3   |
|------------------+--------------+--------|
|   Hats           |    inside    |  2-6   |
|------------------+--------------+--------|
|   Jackets        |     side     |  2-3   |
|                  |    inside    |  2-3   |
|------------------+--------------+--------|
|   Robes          |     side     |   5    |
|                  |    sleeve    |   2    |
|------------------+--------------+--------|
|   Shirts         |    breast    |  2-3   |
|------------------+--------------+--------|
|   Skirts         |     side     |   4    |
|------------------+--------------+--------|
|   Trousers       |     side     |   4    |
|                  |     back     |   2    |
|------------------+--------------+--------|
|   Underwear      |    front     |  1-2   |
|                  |    breast    |  1-2   |
|                  |   cleavage   |   2    |
o==================o==============o========o

Parameters:
type - the type of pocket
amount - the amount the pocket can hold
See also:
query_pockets(), remove_pockets(), set_pocket_mess() and query_pocket_mess()
 * break_me
void break_me()
This method causes the object to be broken.

 * query_clothing
int query_clothing()
This method will return true if the item is an item of clothing.

Returns:
always returns true
 * query_is_pair
int query_is_pair()
 * query_objective
string query_objective()
 * query_pocket_mess
string query_pocket_mess()
This method returns the message associated with the pocket.

Returns:
the message associated with the pocket
See also:
set_pocket_mess(), query_pockets(), add_pocket() and remove_pockets()
 * query_pockets
mixed * query_pockets()
This method returns all the pockets on the object.

Returns:
all the pockets on the object
See also:
add_pocket() and remove_pockets()
 * query_pronoun
string query_pronoun()
 * remove_pockets
void remove_pockets()
This method removes all pockets from the clothing.

See also:
add_pocket() and query_pockets()
 * replace_me
void replace_me()
 * set_is_pair
void set_is_pair(int comes_in_pairs)
 * set_pocket_mess
void set_pocket_mess(string words)
This method sets the message associated with the pocket.

Parameters:
words - the message associated with the pocket
See also:
query_pocket_mess(), add_pocket() and remove_pockets()
 * setup_clothing
void setup_clothing(int number)
This method sets up the condition for the clothing.

Parameters:
number - the maximum condition for the clothing

Discworld MUD's distribution world wide web pages.
brought to you by
Cut Me Own Throat Dibbler's Sensational Sausages; buy one while they are hot.
File last modified: Thu, 18 Sep 2003 17:26:40 GMT

Lost? Try Discworld's home page.