[Package Index | Mudlib Index | Effect Index]
File /obj/crafts/pottery/kiln_inherit.c
An inherit for a pottery kiln. It can be cloned and the description
customised. It would be better to create a separate file which inherits
this rather than cloning on the fly in a room. If added as a hidden
object, the room that contains the kiln must be set.Written by Kaylar
Started October 2005
Inherits
This class inherits the following classes /obj/baggage.cIncludes
This class includes the following files /include/chime.h, /include/tasks.h, /include/crafts/crafts_rewards.h and /include/crafts/pottery.hMethod index
- can_find_match_recurse_into(object)
- chime(string, int)
- do_boom()
- do_check()
- do_fire(object *, string, string, mixed *, string)
- event_enter(object, string, object)
- event_exit(object, string, object)
- make_pot(object)
- query_death_reason()
- set_pot_number(int)
This sets the maximum number of pots that can fit in the kiln.
- set_room(object)
This sets the room that the table is cloned into, this must be set if
you add it as a hidden object.
- test_add(object, int)
Public Functions
These are functions that everyone can access.
-
can_find_match_recurse_into
int can_find_match_recurse_into(object looker)
-
chime
void chime(string mess,
int type)
-
do_boom
void do_boom()
-
do_check
int do_check()
-
do_fire
int do_fire(object * obs,
string dir_match,
string indir_match,
mixed * args,
string pattern)
-
event_enter
void event_enter(object ob,
string message,
object from)
-
event_exit
void event_exit(object ob,
string message,
object to)
-
make_pot
void make_pot(object pot)
-
query_death_reason
string query_death_reason()
-
set_pot_number
void set_pot_number(int i)
This sets the maximum number of pots that can fit in the kiln.
- Parameters:
i - The maximum number.
-
set_room
void set_room(object room_ob)
This sets the room that the table is cloned into, this must be set if
you add it as a hidden object. You can do this after the table is cloned
by using a call other on the table in the room code.
- Parameters:
room_ob - The room object.
room_ob - The room object.
- Example:
kiln = clone_object( "/d/your/kiln" );
kiln->reset_get();
kiln->set_room( this_object() );
add_hidden_object( kiln );
-
test_add
int test_add(object ob,
int flag)