fish.c
ds2.1.1/lib/lib/fish.c · 639 B
From the archive ds2.1.1.zip
Download the archive « Back to the archive contents
/* /lib/fish.c
* from the Dead Souls Object Library
* fish objects which get caught
* created by Descartes of Borg 951009
*/
#include <lib.h>
#include "include/fish.h"
inherit LIB_MEAL;
static private int Mass, Fight;
static private string Food;
static void create() {
meal::create();
Mass = 0;
Food = 0;
Fight = 0;
}
int eventCatch(object who) { return 1; }
int SetFight(int x) { return (Fight = x); }
int GetFight() { return Fight; }
string SetFood(string str) { return (Food = str); }
string GetFood() { return Food; }
int SetMass(int x) { return (Mass = x); }
int GetMass() { return Mass; }