Prototype game engine for Heroes of Might & Magic, featuring a gameplay plot-twist...
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

45 Zeilen
1.8KB

  1. -- Copyright (c) 2024 - Ognjen 'xolatile' Milan Robovic
  2. --
  3. -- GNU General Public Licence (version 3 or later)
  4. with core, effect, resource, faction;
  5. use core;
  6. package construction is
  7. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  8. type enumeration is (
  9. house, cottage, shack, homestead, hut, den
  10. );
  11. ------------------------------------------------------------------------------------------
  12. type definition is record
  13. name : core.unstring;
  14. kind : faction.enumeration;
  15. price : resource.price;
  16. frames : integer;
  17. evoke : effect.information;
  18. end record;
  19. ------------------------------------------------------------------------------------------
  20. count : constant natural := enumeration'pos (enumeration'last) + 1;
  21. description : constant array (enumeration) of definition := (
  22. house => (+("Dwarf House"), faction.dwarf, (others => 0), 1, effect.none),
  23. cottage => (+("Fairy Cottage"), faction.fairy, (others => 0), 1, effect.none),
  24. shack => (+("Gnoll Shack"), faction.gnoll, (others => 0), 1, effect.none),
  25. homestead => (+("Kobold Homestead"), faction.kobold, (others => 0), 1, effect.none),
  26. hut => (+("Goblin Hut"), faction.goblin, (others => 0), 1, effect.none),
  27. den => (+("Imp Den"), faction.imp, (others => 0), 1, effect.none)
  28. );
  29. sprite : array (enumeration) of core.sprite;
  30. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  31. end construction;