version 1.10 | | version 1.11 |
---|
| | |
/* | | /* |
* static char *rcsid_plugins_c = | | * static char *rcsid_plugins_c = |
* "$Id: plugins.c,v 1.10 2001/11/16 03:34:00 michtoen Exp $"; | | * "$Id: plugins.c,v 1.11 2001/11/17 21:25:21 michtoen Exp $"; |
*/ | | */ |
| | |
/*****************************************************************************/ | | /*****************************************************************************/ |
| | |
static int val; | | static int val; |
CFParm *CFP; | | CFParm *CFP; |
CFP = (CFParm*)(malloc(sizeof(CFParm))); | | CFP = (CFParm*)(malloc(sizeof(CFParm))); |
//int cast_spell(object *op, object *caster, int dir, int type, int ability, | | /*int cast_spell(object *op, object *caster, int dir, int type, int ability, */ |
//SpellTypeFrom item, char *stringarg); | | /*SpellTypeFrom item, char *stringarg); */ |
val = cast_spell((object *)(PParm->Value[0]),(object *)(PParm->Value[1]), | | val = cast_spell((object *)(PParm->Value[0]),(object *)(PParm->Value[1]), |
*(int *)(PParm->Value[2]),*(int *)(PParm->Value[3]), | | *(int *)(PParm->Value[2]),*(int *)(PParm->Value[3]), |
*(int *)(PParm->Value[4]),*(SpellTypeFrom *)(PParm->Value[5]), | | *(int *)(PParm->Value[4]),*(SpellTypeFrom *)(PParm->Value[5]), |
| | |
/*****************************************************************************/ | | /*****************************************************************************/ |
CFParm* CFWGetArchetype(CFParm* PParm) | | CFParm* CFWGetArchetype(CFParm* PParm) |
{ | | { |
//object* get_archetype(char* name); | | /*object* get_archetype(char* name); */ |
CFParm *CFP; | | CFParm *CFP; |
object* val; | | object* val; |
CFP = (CFParm*)(malloc(sizeof(CFParm))); | | CFP = (CFParm*)(malloc(sizeof(CFParm))); |
| | |
return CFP; | | return CFP; |
}; | | }; |
| | |
//new_draw_info(int flags, int pri, object *pl, const char *buf); | | /*new_draw_info(int flags, int pri, object *pl, const char *buf); */ |
CFParm* CFWNewDrawInfo(CFParm* PParm) | | CFParm* CFWNewDrawInfo(CFParm* PParm) |
{ | | { |
new_draw_info(*(int *)(PParm->Value[0]), | | new_draw_info(*(int *)(PParm->Value[0]), |
| | |
| | |
CFParm* CFWCFTimerCreate(CFParm* PParm) | | CFParm* CFWCFTimerCreate(CFParm* PParm) |
{ | | { |
//int cftimer_create(int id, long delay, object* ob, int mode) | | /*int cftimer_create(int id, long delay, object* ob, int mode) */ |
CFParm* CFP; | | CFParm* CFP; |
static int val; | | static int val; |
CFP = (CFParm*)(malloc(sizeof(CFParm))); | | CFP = (CFParm*)(malloc(sizeof(CFParm))); |
| | |
| | |
CFParm* CFWCFTimerDestroy(CFParm* PParm) | | CFParm* CFWCFTimerDestroy(CFParm* PParm) |
{ | | { |
//int cftimer_destroy(int id) | | /*int cftimer_destroy(int id) */ |
CFParm* CFP; | | CFParm* CFP; |
static int val; | | static int val; |
CFP = (CFParm*)(malloc(sizeof(CFParm))); | | CFP = (CFParm*)(malloc(sizeof(CFParm))); |