[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 /w/hagi/graffbase.c</h2>
This is an inherit to be inherited along with a room to add 
a surface into a room that can be written on using the 
command "scrawl".  The description of the surface, the writing 
and the item used to write with can be customised.  But they 
default to writing graffiti on walls with charcoal (for the 
sake of backwards compatibility).
/**<h3>Example</h3>
<pre>
#include <terrain_map.h>

inherit "/std/room/basic/graffbase";
inherit "/std/outsides/road";

int _stones;

void setup() {
  set_light(100);

  set_short("carriage stop on the Klatch Road");
  add_property( "determinate" , "a " );

  set_writing_stick("charcoal");
  set_wall_short("shellter");
  set_graffiti("graffiti");

  set_terrain_map_character("#");
  set_climate("Aw");

  set_long("This is the middle of an extremely well used road, "
  "with huge ruts made by the many cart-wheels that pass this way every "
  "day.  At the side of the road here stands a small shelter where "
  "travellers can wait for a passing carriage or caravan.  A few pieces "
  "of charcoal litter the floor where someone has recently cooked their "
  "dinner.");

  set_room_jump_size(10);
  set_follow_road(1);

}

/d/klatch/Maps/terrains/160_400/176_412/terrain_handler:12:30:0
[/d/klatch/Maps/roads/klatch/istanzia_carriage_stop]
(-214013184,-30011520,0)
This is the middle of an extremely well used road, with huge ruts made
by the many cart-wheels that pass this way every day.  At the side of the road
here stands a small shelter where travellers can wait for a passing carriage or
caravan.  A few pieces of charcoal litter the floor where someone has recently
cooked their dinner.  The Crumpled bridge is to the west, the river Istanzia is
visible to the south and northwest, a road runs by to the east and some plains
are to the north, northeast, southeast and southwest.
It is a reasonably hot secundus autumn's afternoon with a gentle breeze and some
puffy clouds.
There are three obvious exits: west, journey east and enter djelibeybi caravan.
A wooden pole with a maroon note and a purple note attached to it is here and
the Djelibeybi Caravan is waiting here.
> syntax scrawl
Forms of syntax available for the command "scrawl":
scrawl on shelter with charcoal 
scrawl with charcoal on shelter
> scrawl on shelter with charcoal
You start scrawling on a shelter with some charcoal.
Enter your text.  Use ** on a line by itself to exit.
1 ]

</pre>
<h2>Includes</h2>
This class includes the following files <a href="include.language.h.shtml">/include/language.h</a><h2>Method index</h2>
<ul>
<li><a href="#query_graffiti">query_graffiti</a>()<br/>
This function returns the short description of the graffiti on the wall.
<li><a href="#query_wall_short">query_wall_short</a>()<br/>
This function returns the short description for what is being written on.
<li><a href="#query_writing_stick">query_writing_stick</a>()<br/>
This function returns the short description for what is being written with.
<li><a href="#set_graffiti">set_graffiti</a>(string)<br/>
This function sets the short description for the graffiti on the wall, 
it defaults to "graffiti" if not defined in the room.
<li><a href="#set_wall_short">set_wall_short</a>(string)<br/>
This function sets the short description for what is being written on, 
it defaults to "wall" if not defined in the room.
<li><a href="#set_writing_stick">set_writing_stick</a>(string)<br/>
This function sets the short description for what is being written with, 
it defaults to "charcoal" if not defined in the room.
</ul>
<h2>Public Functions</h2>
These are functions that everyone can access.<p>
<dl>
<dt><a name="query_graffiti">
query_graffiti</a><pre>
string query_graffiti()
</pre><dd><br />
This function returns the short description of the graffiti on the wall.  
if it hasn't been set to something else, it will have defaulted to "graffiti".  
It could, for example be "writing" or "notes".
<br />

<dt><a name="query_wall_short">
query_wall_short</a><pre>
string query_wall_short()
</pre><dd><br />
This function returns the short description for what is being written on.  
if it hasn't been set to something else, it will have defaulted to "wall".
<br />

<dt><a name="query_writing_stick">
query_writing_stick</a><pre>
string query_writing_stick()
</pre><dd><br />
This function returns the short description for what is being written with.  
if it hasn't been set to something else, it will have defaulted to "charcoal".
<br />

<dt><a name="set_graffiti">
set_graffiti</a><pre>
void set_graffiti(string word)
</pre><dd><br />
This function sets the short description for the graffiti on the wall, 
it defaults to "graffiti" if not defined in the room.  It will appear 
in the room description referring to their being some graffiti (or 
whatever) on the wall here.
<br />
<br />
<dd><b>Parameters:</b><br />
word - The short for the graffiti
<br />
<br />

<dt><a name="set_wall_short">
set_wall_short</a><pre>
void set_wall_short(string word)
</pre><dd><br />
This function sets the short description for what is being written on, 
it defaults to "wall" if not defined in the room.  It will be used in the 
command (scrawl on _wall_short with _writing_stick).
<br />
<br />
<dd><b>Parameters:</b><br />
word - The short for the wall
<br />
<br />

<dt><a name="set_writing_stick">
set_writing_stick</a><pre>
void set_writing_stick(string word)
</pre><dd><br />
This function sets the short description for what is being written with, 
it defaults to "charcoal" if not defined in the room.  It will be used in the 
command (scrawl on _wall_short with _writing_stick).
<br />
<br />
<dd><b>Parameters:</b><br />
word - The short for the writing stick
<br />
<br />

</dl>
[an error occurred while processing this directive]

