xhads/source/chad.ads

56 lines
2.5 KiB
Ada

with core, faction, attribute, skill, resource;
package chad is
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
type codex is (
ognjen, richard, eric, linus, ada, marina,
kathleen, wouter, john
);
------------------------------------------------------------------------------------------
type information is
record
name : core.short_string;
kind : faction.codex;
bonus_attribute : attribute.codex;
bonus_skill : skill.codex;
bonus_resource : resource.codex;
end record;
type data is
record
index : codex;
attributes : attribute.points;
skills : skill.points;
resources : resource.points;
end record;
------------------------------------------------------------------------------------------
count : constant natural := codex'pos (codex'last) + 1;
trait : constant array (codex) of information := (
("Ognjen Milan Robovic ", faction.castle, attribute.offense, skill.archery, resource.gold),
("Richard Martin Stallman ", faction.stronghold, attribute.offense, skill.archery, resource.gold),
("Eric Steven Raymond ", faction.inferno, attribute.offense, skill.archery, resource.gold),
("Linus Benedict Torvalds ", faction.tower, attribute.offense, skill.archery, resource.gold),
("Ada Augusta King ", faction.conflux, attribute.offense, skill.archery, resource.gold),
("Marina Ann Hantzis ", faction.necropolis, attribute.offense, skill.archery, resource.gold),
("Kathleen Hylda Britten ", faction.rampart, attribute.offense, skill.archery, resource.gold),
("Wouter van Oortmerssen ", faction.fortress, attribute.offense, skill.archery, resource.gold),
("John Warner Backus ", faction.dungeon, attribute.offense, skill.archery, resource.gold)
);
------------------------------------------------------------------------------------------
procedure configure;
procedure draw (index : in codex; x, y : in integer);
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
end chad;