Experimental minimal terminal rogue-like game in Ada programming language. I used to write a lot of Ada programs some time ago, then went in full C and assembly mode, and came back to Ada...
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.

61 lines
3.1KB

  1. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  2. -- Copyright (c) 2023 - Ognjen 'xolatile' Milan Robovic
  3. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  4. -- Xabina is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either
  5. -- version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
  6. -- implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  7. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  8. with core;
  9. package monster is
  10. ------------------------------------------------------------------------------------------
  11. type list is (
  12. goblin_slave, goblin_worker, goblin_warrior, goblin_boar_rider, goblin_shaman, goblin_chief, goblin_king, goblin_ogre
  13. );
  14. type mark is mod 72;
  15. ------------------------------------------------------------------------------------------
  16. type constant_type is new core.constant_type with
  17. record
  18. attack_range : natural := 0;
  19. end record;
  20. type variable_type is new core.variable_type with
  21. record
  22. soul : core.soul_type;
  23. health : core.health_type;
  24. mana : core.mana_type;
  25. end record;
  26. type constant_list is array (list) of constant_type;
  27. type variable_list is array (mark) of variable_type;
  28. ------------------------------------------------------------------------------------------
  29. constant_data : constant constant_list := (
  30. (core.monster, "Goblin Slave ", 'S', core.colour.green, core.effect.bold, 2),
  31. (core.monster, "Goblin Worker ", 'R', core.colour.green, core.effect.bold, 3),
  32. (core.monster, "Goblin Warrior ", 'W', core.colour.green, core.effect.bold, 5),
  33. (core.monster, "Goblin Boar Rider ", 'B', core.colour.green, core.effect.bold, 11),
  34. (core.monster, "Goblin Shaman ", 'H', core.colour.green, core.effect.bold, 3),
  35. (core.monster, "Goblin Chief ", 'C', core.colour.green, core.effect.bold, 7),
  36. (core.monster, "Goblin King ", 'K', core.colour.green, core.effect.bold, 13),
  37. (core.monster, "Goblin Ogre ", 'O', core.colour.green, core.effect.bold, 23)
  38. );
  39. variable_data : variable_list;
  40. ------------------------------------------------------------------------------------------
  41. procedure generate;
  42. procedure render;
  43. ------------------------------------------------------------------------------------------
  44. end monster;