2024-04-25 00:27:13 -04:00
|
|
|
-- Copyright (c) 2024 - Ognjen 'xolatile' Milan Robovic
|
|
|
|
--
|
|
|
|
-- GNU General Public Licence (version 3 or later)
|
|
|
|
|
2024-06-09 12:38:38 -04:00
|
|
|
with core, attribute, skill, resource, material, faction, equipment, unit;
|
2024-02-22 03:29:04 -05:00
|
|
|
|
|
|
|
package chad is
|
|
|
|
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
2024-04-26 16:05:48 -04:00
|
|
|
type enumeration is (
|
2024-04-25 00:27:13 -04:00
|
|
|
ada, richard, ognjen, wouter, john, marina
|
2024-02-22 03:29:04 -05:00
|
|
|
);
|
|
|
|
|
|
|
|
------------------------------------------------------------------------------------------
|
|
|
|
|
2024-06-09 11:07:49 -04:00
|
|
|
item_limit : constant natural := 24;
|
|
|
|
skill_limit : constant natural := 8;
|
|
|
|
|
|
|
|
type item_array is array (0 .. item_limit - 1) of equipment.enumeration;
|
|
|
|
|
2024-06-01 11:46:17 -04:00
|
|
|
type definition is record
|
2024-06-04 07:52:44 -04:00
|
|
|
name : access string;
|
2024-06-06 09:32:47 -04:00
|
|
|
title : access string;
|
2024-06-04 07:52:44 -04:00
|
|
|
kind : faction.enumeration;
|
|
|
|
bonus_attribute : attribute.enumeration;
|
|
|
|
bonus_skill : skill.enumeration;
|
|
|
|
bonus_resource : resource.enumeration;
|
2024-02-22 03:29:04 -05:00
|
|
|
end record;
|
|
|
|
|
2024-06-01 11:56:18 -04:00
|
|
|
type information is record
|
2024-06-05 08:29:55 -04:00
|
|
|
index : enumeration := ada;
|
|
|
|
state : core.animation := core.idle;
|
2024-06-06 09:32:47 -04:00
|
|
|
level : natural := 1;
|
2024-06-05 08:29:55 -04:00
|
|
|
x : integer := 0;
|
|
|
|
y : integer := 0;
|
|
|
|
health : core.point := (12, 12);
|
|
|
|
mana : core.point := (12, 12);
|
|
|
|
movement : core.point := (12, 12);
|
|
|
|
attributes : attribute.points := attribute.default;
|
2024-06-09 11:07:49 -04:00
|
|
|
skills : skill.points := (others => (others => <>));
|
2024-06-05 08:29:55 -04:00
|
|
|
resources : resource.points := resource.default;
|
|
|
|
materials : material.points := material.default;
|
|
|
|
equipments : equipment.equip_array := equipment.default;
|
|
|
|
item_count : natural := 0;
|
|
|
|
items : item_array := (others => equipment.none);
|
2024-06-09 12:38:38 -04:00
|
|
|
units : unit.points := (others => (others => <>));
|
2024-03-13 18:32:59 -04:00
|
|
|
end record;
|
|
|
|
|
2024-06-01 11:56:18 -04:00
|
|
|
type informations is array (natural range <>) of information;
|
2024-05-17 18:35:31 -04:00
|
|
|
|
2024-02-22 03:29:04 -05:00
|
|
|
------------------------------------------------------------------------------------------
|
|
|
|
|
2024-06-08 04:38:28 -04:00
|
|
|
-- Knight Cleric Ranger Druid Alchemist Wizard Heretic Demoniac Necromancer Death-Knight Overlord Warlock Barbarian Battlemage Beast-Tamer Witch
|
|
|
|
|
2024-04-26 16:05:48 -04:00
|
|
|
count : constant natural := enumeration'pos (enumeration'last) + 1;
|
2024-02-22 03:29:04 -05:00
|
|
|
|
2024-06-01 11:46:17 -04:00
|
|
|
description : constant array (enumeration) of definition := (
|
2024-06-06 09:32:47 -04:00
|
|
|
ada => (new string'("Ada Augusta King"), new string'("Guardian"), faction.fairy, attribute.defense, skill.diplomacy, resource.metal),
|
|
|
|
richard => (new string'("Richard Martin Stallman"), new string'("Prophet"), faction.dwarf, attribute.offense, skill.leadership, resource.wood),
|
|
|
|
ognjen => (new string'("Ognjen Milan Robovic"), new string'("Wanderer"), faction.kobold, attribute.stamina, skill.archery, resource.leather),
|
|
|
|
wouter => (new string'("Wouter van Oortmerssen"), new string'("Battlemage"), faction.gnoll, attribute.speed, skill.medicine, resource.stone),
|
|
|
|
john => (new string'("John Warner Backus"), new string'("Sorcerer"), faction.goblin, attribute.wisdom, skill.sorcery, resource.gem),
|
|
|
|
marina => (new string'("Marina Ann Hantzis"), new string'("Necromancer"), faction.imp, attribute.reach, skill.necromancy, resource.gold)
|
2024-02-22 03:29:04 -05:00
|
|
|
);
|
|
|
|
|
2024-06-03 16:06:31 -04:00
|
|
|
view_width : constant integer := 64;
|
|
|
|
view_height : constant integer := 96;
|
|
|
|
|
|
|
|
sprite : array (enumeration) of core.sprite;
|
|
|
|
view : array (enumeration) of core.sprite;
|
2024-02-22 03:29:04 -05:00
|
|
|
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
end chad;
|