18 lines
229 B
C
18 lines
229 B
C
|
#include "monster.h"
|
||
|
#include "util.h"
|
||
|
|
||
|
Monster*
|
||
|
monster_create()
|
||
|
{
|
||
|
Monster *m = ec_malloc(sizeof(Monster));
|
||
|
m->sprite = sprite_create();
|
||
|
return m;
|
||
|
}
|
||
|
|
||
|
void
|
||
|
monster_destroy(Monster *m)
|
||
|
{
|
||
|
sprite_destroy(m->sprite);
|
||
|
free(m);
|
||
|
}
|