Prototype game engine for Heroes of Might & Magic, featuring a gameplay plot-twist...
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

57 行
2.3KB

  1. -- Copyright (c) 2024 - Ognjen 'xolatile' Milan Robovic
  2. --
  3. -- GNU General Public Licence (version 3 or later)
  4. with core, attribute, skill, resource, faction;
  5. package chad is
  6. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  7. type enumeration is (
  8. ada, richard, ognjen, wouter, john, marina
  9. );
  10. ------------------------------------------------------------------------------------------
  11. type information is record
  12. name : core.short_string;
  13. kind : faction.enumeration;
  14. bonus_attribute : attribute.enumeration;
  15. bonus_skill : skill.enumeration;
  16. bonus_resource : resource.enumeration;
  17. end record;
  18. type data is record
  19. index : enumeration;
  20. attributes : attribute.points;
  21. skills : skill.points;
  22. resources : resource.points;
  23. end record;
  24. ------------------------------------------------------------------------------------------
  25. count : constant natural := enumeration'pos (enumeration'last) + 1;
  26. trait : constant array (enumeration) of information := (
  27. ("Ada Augusta King ", faction.fairy, attribute.defense, skill.diplomacy, resource.metal),
  28. ("Richard Martin Stallman ", faction.dwarf, attribute.offense, skill.leadership, resource.wood),
  29. ("Ognjen Milan Robovic ", faction.gnoll, attribute.stamina, skill.archery, resource.leather),
  30. ("Wouter van Oortmerssen ", faction.kobold, attribute.speed, skill.medicine, resource.stone),
  31. ("John Warner Backus ", faction.goblin, attribute.wisdom, skill.sorcery, resource.crystal),
  32. ("Marina Ann Hantzis ", faction.imp, attribute.reach, skill.necromancy, resource.gold)
  33. );
  34. ------------------------------------------------------------------------------------------
  35. procedure configure;
  36. procedure draw (index : in enumeration; x, y : in integer);
  37. procedure draw_pepe;
  38. procedure draw_alice;
  39. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  40. end chad;