/*
       -= 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:exscrdog.sc
Desc:example of script type: how to easly communicate between scripts
     the DOG script
*/

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

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

//Only bark, guard and sleep are used in DogScript in exscript.sc, but
//we can also export other things, like init.
export init;
export bark;
export guard;
export sleep;
export die;

char *name="dog";

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

void bark()
{printf("%s barks.\n",name);
}

void guard()
{printf("%s is guarding.\n",name);
}

void sleep()
{printf("%s is sleeping.ZZzz.\n",name);
}

void die()
{printf("%s is killed by his master seeing all cows dead.\n",name);
}
