Prototype game engine for Heroes of Might & Magic, featuring a gameplay plot-twist...
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

47 wiersze
2.1KB

  1. -- Copyright (c) 2024 - Ognjen 'xolatile' Milan Robovic
  2. --
  3. -- GNU General Public Licence (version 3 or later)
  4. with core;
  5. package resource is
  6. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  7. type enumeration is (
  8. gold, wood, stone, metal, leather, gem
  9. );
  10. ------------------------------------------------------------------------------------------
  11. type information is record
  12. name : core.short_string;
  13. base : natural;
  14. text : core.long_string;
  15. end record;
  16. type points is array (enumeration) of natural;
  17. ------------------------------------------------------------------------------------------
  18. count : constant natural := enumeration'pos (enumeration'last) + 1;
  19. trait : constant array (enumeration) of information := (
  20. ("Gold ", 0, "Gold is precious yellowish shiny metal, valued since ancient times. "),
  21. ("Wood ", 0, "Wood is just bundle of lignin and cellulose, nothing more. "),
  22. ("Stone ", 0, "Stone is essential building block for most constructions in this world. "),
  23. ("Metal ", 0, "Metal as a resource is mixture of commonly found metalic elements. "),
  24. ("Leather ", 0, "Leather is general purpose resource, used for armours and decorations. "),
  25. ("Gem ", 0, "Gem as a resource is same as metal, just mixture of various gems. ")
  26. );
  27. ------------------------------------------------------------------------------------------
  28. procedure configure;
  29. procedure draw_points (data : in points; x, y : in integer);
  30. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  31. end resource;