//Constructeur , destructeur SfmlWorms::SfmlWorms(int nombreDeWorms) : text(nombreDeWorms),quads(nombreDeWorms){ this->nombreDeWorms=nombreDeWorms; tabWorms=new int* [nombreDeWorms]; for(int i;i<nombreDeWorms;i++){ tabWorms[i]=new int[5]; quads[i].setPrimitiveType(sf::Quads);} parseTxt(); load("../res/waccuse11.png", sf::Vector2u(64, 64),2); }
void processFiles(WCHAR* outname) { int tally; // parse def info into vector printf("parsing def..."); parseDef(); printf("done! %d items found.\nparsing txt...", g_items.size()); parseTxt(); printf("done! %d items found.\n", g_txt.size()); // iterate vector to find and mark disabled instances in infile.txt printf("tidying things up...\n"); checkTxt(); printf("writing result to %S...", outname); tally = writeOutput(outname); printf("Done!\n%d of %d items were commented out\n", tally, g_items.size()); }