jdc {l Wrote}:(don't imagine many ppl using linux):
main(){
#include "application_structures\time.h"
#include "application_structures\error.h"
#include "application_structures\file.h"
#include "application_structures\string.h"
#include "application_structures\paths.h"
#include "application_structures\database.h"
#include "application_structures\image.h"
#include "application_structures\image_jpg.h"
//#include "application_structures\image_png.h"
//#include "application_structures\image_gif.h"
#include "application_structures\sound.h"
#include "application_structures\keys.h"
#include "application_structures\resolution.c"
//#include "application_structures\interface.c"
#include "application_structures\model.h"
#include "application_structures\model_textures.h"
#include "application_structures\model_animation.h"
#include "application_structures\model_particles.h"
#include "application_structures\model_bounds.h" //colision, triggers
#include "application_structures\model_blend.c"
//#include "application_structures\model_DAE.c"
//#include "application_structures\model_FBX.c"
//#include "application_structures\model_OBJ.c"
#include "application_structures\camera.h
#include "application_structures\camera_RTS.h
//#include "application_structures\camera_FPS.h
//#include "application_structures\camera_2D.h
//#include "application_structures\camera_3Person.h
#include "application_structures\print_screen.h
#include "application_structures\movement_RPG.h"
#include "application_structures\movement_Vehicles.h"
#include "application_structures\AI.h"
/* GAME STRUCTURE LIBRARY */
#include "game_strutures\game.c"
#include "game_strutures\money.c" //timers
//#include "loots.c"
#include "game_strutures\spells.c"
#include "game_strutures\abilitys.c"
#include "game_strutures\items.c"
#include "game_strutures\items_sci_fi.c"
#include "game_strutures\items_rpg.c"
#include "game_strutures\items_fantasy.c"
/* TEST LIBRARY */
//#include "variables_interface.c"
//#include "interfaces/interface2.c"
if (debug == 1){
//fprintf (stderr, "%s:%d: %s: Assertion `%s' failed.\n", error_file, error_line, error_func, error_assert);
//abort ();
}
printf("Choose interface : ");
scanf("%s", str1);
printf("Enter interface : %s", str1);
interface = atoi (str1); // Convertes the string to a integer
/*
TOOLS LIBRARY
-Interfaces can be in .c since they do not delegate any to other files.
-The previous .h files cam delegate to .c files.
*/
if(interface == 0){ // Main Menu
//printf("Main Menu loading");
#include "interfacces/main_menu_GTK.c"
//#include "interfacces/main_menu_SDL.c"
//#include "interfacces/main_menu_Free_GLUT.c"
}
else if(interface == 1){ // Character Creator
//printf("Character Creator loading");
#include "interfaces/character_generator_GTK.c"
}
else if(interface == 2){ // Shadder Tool
//printf("Interface2");
//#include "interfaces/interface2.c"
}
else if(interface == 3){ // Map Editor
//printf("Interface3");
//#include "interfaces/interface3.c"
}
else if(interface == 4){ // Variable Manager
//printf("Interface3");
//#include "interfaces/interface3.c"
}
else if(interface == 5){ // Generic Animation
//printf("Interface3");
//#include "interfaces/interface3.c"
}
else if(interface == 6){ // Particle Tool
//printf("Interface3");
//#include "interfaces/interface3.c"
}
else if(interface == 7){ // Particle Tool
//printf("Interface3");
//#include "interfaces/interface3.c"
}
else if(interface == 8){ // Level Models Position
//printf("Interface3");
//#include "applications/the_box/levels_models_position.c"
}
else if(interface == 9){ // Level Editor
//printf("Interface9");
//#include "applications/the_box/levels_models_position.c"
}
else if(interface == 10){ // Database tool
//printf("Interface9");
//#include "applications/the_box/levels_models_position.c"
}
else if(interface == 11){ // Options
//printf("Interface9");
//#include "applications/the_box/levels_models_position.c"
}
system("cls");
system("pause");
return 0; // Zero indicates success any other failed
}
jdc {l Wrote}:For what i read C is a single treat language you only have main() to work with.
jdc {l Wrote}:For what i tested both files .h can communicate with which other. The ".c" extension can't access which other files.
jdc {l Wrote}:The .h files need to be in main, to work with variables
Octavekman22 {l Wrote}:I want to know about structural programming
Users browsing this forum: No registered users and 1 guest