2024-02-22 06:16:09 -05:00
|
|
|
with core, faction, attribute, skill, resource;
|
2024-02-22 03:29:04 -05:00
|
|
|
|
|
|
|
package chad is
|
|
|
|
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
type codex is (
|
|
|
|
ognjen, richard, eric, linus, ada, marina,
|
2024-02-24 14:51:53 -05:00
|
|
|
kethleen, wouter, john
|
2024-02-22 03:29:04 -05:00
|
|
|
);
|
|
|
|
|
|
|
|
------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
type information is
|
|
|
|
record
|
2024-03-13 18:18:07 -04:00
|
|
|
name : core.short_string;
|
|
|
|
kind : faction.codex;
|
|
|
|
bonus_attribute : attribute.codex;
|
|
|
|
bonus_skill : skill.codex;
|
|
|
|
bonus_resource : resource.codex;
|
2024-02-22 03:29:04 -05:00
|
|
|
end record;
|
|
|
|
|
2024-03-13 18:32:59 -04:00
|
|
|
type data is
|
|
|
|
record
|
|
|
|
index : codex;
|
|
|
|
attributes : attribute.value_array;
|
|
|
|
skills : skill.value_array;
|
|
|
|
resources : resource.value_array;
|
|
|
|
end record;
|
|
|
|
|
2024-02-22 03:29:04 -05:00
|
|
|
type trait_array is array (codex) of information;
|
|
|
|
type sprite_array is array (codex) of core.sprite;
|
|
|
|
|
|
|
|
------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
sprite : sprite_array;
|
|
|
|
|
|
|
|
count : constant natural := codex'pos (codex'last) + 1;
|
|
|
|
|
|
|
|
trait : constant trait_array := (
|
2024-03-13 18:18:07 -04:00
|
|
|
("Ognjen Milan Robovic ", faction.castle, attribute.power, skill.archery, resource.gold),
|
|
|
|
("Richard Martin Stallman ", faction.stronghold, attribute.knowledge, skill.leadership, resource.ore),
|
|
|
|
("Eric Steven Raymond ", faction.inferno, attribute.defense, skill.resistance, resource.wood),
|
2024-03-13 18:32:59 -04:00
|
|
|
("Linus Benedict Torvalds ", faction.tower, attribute.attack, skill.offense, resource.mercury),
|
2024-03-13 18:18:07 -04:00
|
|
|
("Ada Augusta King ", faction.conflux, attribute.defense, skill.sorcery, resource.gold),
|
2024-03-13 18:32:59 -04:00
|
|
|
("Marina Ann Hantzis ", faction.necropolis, attribute.attack, skill.necromancy, resource.gem),
|
|
|
|
("Kathleen Hylda Britten ", faction.rampart, attribute.knowledge, skill.intelligence, resource.wood),
|
|
|
|
("Wouter van Oortmerssen ", faction.fortress, attribute.power, skill.logistics, resource.ore),
|
|
|
|
("John Warner Backus ", faction.dungeon, attribute.knowledge, skill.mysticism, resource.crystal)
|
2024-02-22 03:29:04 -05:00
|
|
|
);
|
|
|
|
|
|
|
|
------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
procedure configure;
|
|
|
|
|
|
|
|
procedure draw (index : in codex; x, y : in integer);
|
|
|
|
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
end chad;
|