OBJECT
/std/disease
LAST UPDATE
Softbyte, July 1997
SYNOPSIS
inherit "/std/disease";
#include <properties.h>
DESCRIPTION
The following is just a copy of the std/disease file and will be updated
soon.
// (c) 7/97 Softbyte for OSB
//
// To write an disease: - inherit this object inherit DISEASE;
// - set properties in create P_DISEASE_SHORT,P_DISEASE_LONG
// at least the following P_DISEASE_SUBTYPE,
// You find all proerties P_DISEASE_TIME_ACTION
// in <properties.h>
// - Overwrite the Action() void Action() {
// function to perform the ...
// action of the disease }
// - Call Infect(0-1000) Infect(250);
// if you want to infect
// a rendomly choose living
// in the environment
// To start the disease: - clone the disease object disease=clone_object("filename");
// - move it into the player disease->move(player,M_SILENT);
// - call enable disease->Enable();
//
//
// P_DISEASE_SHORT name of the illness
// P_DISEASE_LONG long desc. of the illness
// P_DISEASE_SEVERENESS 1/1000 severeness for heal
// P_DISEASE_OWNER owner of the illness
// P_DISEASE_TYPE Type fixed "_disease"
// P_DISEASE_SUBTYPE Subtype e.g."_flue"
// P_DISEASE_TIME_HEAL avg. time to self healing
// P_DISEASE_TIME_ACTION avg time for Action call
// P_DISEASE_CURE_MSG An healer shows this
SEE ALSO
herbs