view src/creep.h @ 11:c0bb53eaa6f4

Calculate distances from goal for all passible points for pathfinding purposes
author Mike Pavone <pavone@retrodev.com>
date Sun, 12 Jan 2014 17:05:53 -0800
parents 3ed112d64b1b
children 5c7f33441e43
line wrap: on
line source

#ifndef CREEP_H_
#define CREEP_H_

enum {
	CREEP_NORMAL = 0
} creep_species;

typedef struct {
	u16  index;
	u16  health;
	u16  waypoint;
	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_