Prototype game engine for Heroes of Might & Magic, featuring a gameplay plot-twist...
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
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, crystal
  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. ("Crystal ", 0, "Crystal as a resource is same as metal, just mixture of various gems. ")
  26. );
  27. ------------------------------------------------------------------------------------------
  28. procedure configure;
  29. procedure menu (x, y : in integer; center : in boolean);
  30. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  31. end resource;