view src/creep.h @ 22:b725a715b358

cursor now blinks the current selection
author William Morgan <bill@mrgn.org>
date Mon, 13 Jan 2014 21:48:22 -0800
parents 51a0972fcf76
children
line wrap: on
line source

#ifndef CREEP_H_
#define CREEP_H_

enum {
	CREEP_NORMAL = 0,
	NUM_SPECIES
} creep_species;

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

#define MAX_CREEPS 40
extern u16 cur_creeps;

u16 spawn_creep(u8 species, s16 x, s16 y);
void update_creeps(void);

#endif //CREEP_H_