Globals.h 891 B

123456789101112131415161718192021222324252627282930313233343536
  1. #pragma once
  2. #include <Array.h>
  3. #include <Bildschirm.h>
  4. #include <DLLRegister.h>
  5. #include <Fenster.h>
  6. #include <HashMap.h>
  7. #include <RCPointer.h>
  8. #include <Schrift.h>
  9. #include <UIInitialization.h>
  10. #include "Menu.h"
  11. #include "World.h"
  12. #ifndef variable
  13. # define variable extern
  14. #endif
  15. variable Framework::HashMap<Framework::Text, Framework::RCPointer<Menu>>*
  16. menuRegister;
  17. variable UIInit uiFactory;
  18. variable Framework::HashMap<Framework::Text, Framework::RCPointer<Schrift>>*
  19. fontRegister;
  20. variable DLLRegister* dlls;
  21. variable Framework::WFenster* window;
  22. variable BlockType** blockTypes;
  23. variable int blockTypeCount;
  24. variable ItemType** itemTypes;
  25. variable int itemTypeCount;
  26. variable EntityType** entityTypes;
  27. variable int entityTypeCount;
  28. void initVariables();
  29. void initMenus();
  30. void releaseVariables();
  31. const ItemType* zItemType(int id);