#include "egg.h"
#include "map.h"
#include <curses.h>

egg::egg() {
	setchar('8');
	setcol(RED);
	live = true;
	settype("egg");
	hatchtime = 10;
}

bool egg::move() {
	if (!hatchtime) return false;
	hatchtime--;
	if (hatchtime < 3) setcol(BRIGHTRED);
	return true;
}
bool egg::hatched() { return !hatchtime; }
