}
Structures::Structures(){
- type = -1;
+ type = STRUCTURET;
speed = 0;
+ alive = true;
}
- unsigned int Structures::spawn(int t, float x, float y){
+ unsigned int Structures::spawn(_TYPE t, float x, float y){
loc.x = x;
loc.y = y;
type = t;
/*VILLAGE*/
- if(type == -1){
+ if(type == STRUCTURET){
- width = 4 * HLINE;
- height = 4 * HLINE;
+ loc.y=100;
+ width = 20 * HLINE;
+ height = 16 * HLINE;
//int tempN = (getRand() % 5 + 1);
int tempN = 2;
entity[0]=&build[0];
static unsigned int i;
- build[0].spawn(-1,0,10);
+ build[0].spawn(STRUCTURET,0,10);
- for(i=0;i<=entity.size();i++){
+ build[0].inside=iw;
+ for(i=0;i<entity.size()+1;i++){
entity[i]->inWorld=test;
}