Prototype game engine for Heroes of Might & Magic, featuring a gameplay plot-twist...
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

47 行
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 menu (x, y : in integer; center : in boolean);
  30. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  31. end resource;