view src/creep.h @ 10:889227ec630c

cursor and input code added.
author William Morgan <bill@mrgn.org>
date Sun, 12 Jan 2014 16:13:49 -0800
parents 3ed112d64b1b
children c0bb53eaa6f4
line wrap: on
line source

#ifndef CREEP_H_
#define CREEP_H_

enum {
	CREEP_NORMAL = 0
} creep_species;

typedef struct {
	u16  index;
	u16  health;
	u8   species;
	u8   direction;
} creep;

#define MAX_CREEPS 40
extern u16 cur_creeps;
u16 spawn_creep(u8 species, s16 x, s16 y);

#endif //CREEP_H_