Globals.h 914 B

12345678910111213141516171819202122232425262728293031323334353637
  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 "ItemType.h"
  11. #include "Menu.h"
  12. #include "World.h"
  13. #ifndef variable
  14. # define variable extern
  15. #endif
  16. variable Framework::HashMap<Framework::Text, Framework::RCPointer<Menu>>*
  17. menuRegister;
  18. variable UIInit uiFactory;
  19. variable Framework::HashMap<Framework::Text, Framework::RCPointer<Schrift>>*
  20. fontRegister;
  21. variable DLLRegister* dlls;
  22. variable Framework::WFenster* window;
  23. variable BlockType** blockTypes;
  24. variable int blockTypeCount;
  25. variable ItemType** itemTypes;
  26. variable int itemTypeCount;
  27. variable EntityType** entityTypes;
  28. variable int entityTypeCount;
  29. void initVariables();
  30. void initMenus();
  31. void releaseVariables();
  32. const ItemType* zItemType(int id);