[an error occurred while processing this directive]
[<a href="index.shtml">Package Index</a></code> | <a href="index_std.shtml">Mudlib Index</a></code> | <a href="index_eff.shtml">Effect Index</a></code>]<br><h2>File /obj/misc/glass.c</h2>
A nice little inheritable and constructible glass object thing.
<p>Written by Taffyd
<h2>Inherits</h2>
This class inherits the following classes <a href="obj.vessel.c.shtml">/obj/vessel.c</a><h2>Method index</h2>
<dl><ul>
<li><a href="#make_glass">make_glass</a>(string, string, string, int, int)<br/>
This function is used to transform the glass into a new type of glass, changing the 
short descriptions and adding aliases and adjectives.
</ul><h2>Public Functions</h2>
These are functions that everyone can access.<p>
.<ul><a name="make_glass">
make_glass</a><pre>
void make_glass(string drink,
                string glass_description,
                string glass_size,
                int amount,
                int has_contents)
</pre></br>
This function is used to transform the glass into a new type of glass, changing the 
short descriptions and adding aliases and adjectives.

If the 'contents' parameter is 1, then the glass is automatically filled
up with a drink made from /obj/reagents/generic_liquid.ob

<br/><ul>
<li><b>Parameters:</b>
<br/>drink - The name of the drink to be created
<br/>glass_description - The description given when there is something in the glass.
<br/>glass_size - The size of the glass, (in words), for example "large glass",
<br/>amount - The amount of liquid the glass should hold.
<br/>has_contents - Fill the glass up with 'drink'.
<li><b>See also:</b>
<br/><a href="obj.bottle.c.shtml">/obj/bottle.c</a><li><b>Example:</b>
<br/><pre>// Create a large glass of tomato juice

glass = clone_object("/obj/glass");
glass->make_glass("tomato juice", "Red, thick, delicious.\n",
     "large glass", 4000, 1);
glass->move(this_object());
</pre><br/><pre>
inherit "/obj/glass";

void setup() {
// Do your own configuration of the glass, then call make_glass

    ...
    make_glass("chocolate milkshake", "Yumm...", "shot glass", 100, 0);
    ...
// Place your own contents in, do other funky stuff.
}
</pre></dl>


[an error occurred while processing this directive]

