- added quest stuff between NPCs and player
- began work on giving names to NPCs
- began working on config file
+ - created a bug file
}
void Entity::draw(void){ //draws the entities
- if(type==NPCT)
+ if(type==NPCT){
if(gender == MALE)
glColor3ub(0,0,100);
else if(gender == FEMALE)
glColor3ub(255,105,180);
- else if(type==STRUCTURET)
+ }else if(type==STRUCTURET){
glColor3ub(100,0,100);
+ }
glRectf(loc.x,loc.y,loc.x+width,loc.y+height);
}
std::vector<Entity*>entity;
std::vector<NPC>npc;
-std::vector<Structures>build;
+std::vector<Structures *>build;
int mx, my;
FILE* names;
void render();
int entityInteractTest(NPC *speaker){
+ ui::dialogBox("Here, have a quest!");
player->qh.assign("Test");
return 1;
}
// Make structures
entity.push_back(new Entity());
- build.push_back(Structures());
- entity[0]=&build[0];
+ build.push_back(new Structures());
+ entity[0]=build[0];
static unsigned int i;
- build[0].spawn(STRUCTURET,0,10);
- build[0].inside=iw;
+ build[0]->spawn(STRUCTURET,0,10);
+ build[0]->inside=iw;
for(i=0;i<entity.size()+1;i++){
entity[i]->inWorld=test;
}