void destroyGenerateApple(int pos) { deleteApple(pos); Apple apple; SetApple(server_data.map_matrix,&apple); addApple(apple); }
void ItemFactory::produce(float dt) { //produce food when necessary addFood(); //add the transfer doors //load from json //addDoor(); //add the score apple addApple(dt); //add the speed star addStar(dt); //add the slow down ball addBall(dt); //check and remove expired item removeExpiredItem(dt); }