Prototype game engine for Heroes of Might & Magic, featuring a gameplay plot-twist...
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

50 linhas
2.1KB

  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. package construction is
  6. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  7. type enumeration is (
  8. house, cottage, shack, homestead, hut, den
  9. );
  10. ------------------------------------------------------------------------------------------
  11. type information is record
  12. name : core.short_string;
  13. kind : faction.enumeration;
  14. price : resource.points;
  15. frames : integer;
  16. evoke : effect.value;
  17. end record;
  18. ------------------------------------------------------------------------------------------
  19. count : constant natural := enumeration'pos (enumeration'last) + 1;
  20. trait : constant array (enumeration) of information := (
  21. ("Dwarf House ", faction.dwarf, (others => 0), 1, effect.none),
  22. ("Fairy Cottage ", faction.fairy, (others => 0), 1, effect.none),
  23. ("Gnoll Shack ", faction.gnoll, (others => 0), 1, effect.none),
  24. ("Kobold Homestead ", faction.kobold, (others => 0), 1, effect.none),
  25. ("Goblin Hut ", faction.goblin, (others => 0), 1, effect.none),
  26. ("Imp Den ", faction.imp, (others => 0), 1, effect.none)
  27. );
  28. sprite : array (enumeration) of core.sprite;
  29. ------------------------------------------------------------------------------------------
  30. procedure configure;
  31. procedure draw (index : in enumeration; x, y : in integer);
  32. procedure draw_plus (index : in enumeration; x, y : in integer);
  33. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  34. end construction;