/*
       -= SEER - C-Scripting engine v 0.94a =-
State      : under implementation
Author     : Przemyslaw Podsiadly
             email: ppodsiad@elka.pw.edu.pl
             WWW:   http://home.elka.pw.edu.pl/~ppodsiad/seer
File:exscrcow.sc
Desc:example of script type: how to easly communicate between scripts
     the COW script
*/

#title "The Cow"
#author "Przemyslaw Podsiadly 1999"

import int printf(char *,...);

//Only moo,eat and rush are used in CowScript in exscript.sc, but
//we can also export other things, like init.
export init;
export moo;
export eat;
export rush;
export die;

char *name="cow";

void init(char *_name)
{name=_name;
 printf("Cow %s is born\n",name);
}

void moo()
{printf("%s moos.\n",name);
}

void eat()
{printf("%s is eating grass. Tasty!\n",name);
}

void rush()
{printf("%s is rushing home.\n",name);
}

void die()
{printf("%s is killed by a group of wolves.\n",name);
}