[Package Index | Mudlib Index | Effect Index]
File /obj/crafts/bodging/lathe.c
Bodger's lathe, for woodworking.Written by Touchstone
Started late 2007
Inherits
This class inherits the following classes /std/object.cIncludes
This class includes the following files /include/tasks.h and /include/crafts/crafts_rewards.hMethod index
- check_materials(object, object)
Performs checks on the wood used to make sure that 
it's suitable for bodging.
 - check_player(object)
Performs checks on the player and the pattern book to make sure that 
both of them are suitable for bodging.
 - do_bodge(object, object)
Entry point, called from the bodge command in init().
 - end_bodging(int, mixed)
Called via adjust_time_left from do_bodge().
 - get_pattern_from_book(object, object, object, int)
Gets the pattern details from the open page of the pattern book.
 
Public Functions
These are functions that everyone can access.
- 
check_materials
string check_materials(object wood,
                       object book)
 
Performs checks on the wood used to make sure that 
it's suitable for bodging.  Internal use only.
- See also:
check_player
.c
 
- 
check_player
int check_player(object book)
 
Performs checks on the player and the pattern book to make sure that 
both of them are suitable for bodging.
Internal use only.
- See also:
check_materials
.c
 
- 
do_bodge
int do_bodge(object pattern,
             object wood)
 
Entry point, called from the bodge command in init().
- See also:
end_bodging
.c
 
- 
end_bodging
int end_bodging(int time_left,
                mixed args)
 
Called via adjust_time_left from do_bodge().
Internal use only.
- See also:
do_bodge
.c
 
- 
get_pattern_from_book
mixed * get_pattern_from_book(object player,
                              object book,
                              object wood,
                              int design_flag)
 
Gets the pattern details from the open page of the pattern book.
Internal use only.