2024-05-12 20:15:36 -04:00
|
|
|
-- Copyright (c) 2024 - Ognjen 'xolatile' Milan Robovic
|
|
|
|
--
|
|
|
|
-- GNU General Public Licence (version 3 or later)
|
|
|
|
|
|
|
|
with core;
|
|
|
|
|
|
|
|
package material is
|
|
|
|
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
type enumeration is (
|
2024-05-28 04:25:34 -04:00
|
|
|
sulphur, mercury, mint, cinnamon, apple, peach,
|
|
|
|
pear, banana, orange, plum, cherry, lemon,
|
|
|
|
potato, wheat, carrot, cucumber, onion, garlic,
|
|
|
|
eggplant, tomato, meat, fish_meat, skull, animal_skull,
|
|
|
|
bone, rib_cage, animal_skin, animal_fur
|
2024-05-12 20:15:36 -04:00
|
|
|
);
|
|
|
|
|
|
|
|
------------------------------------------------------------------------------------------
|
|
|
|
|
2024-06-01 11:46:17 -04:00
|
|
|
type definition is record
|
2024-05-31 07:14:00 -04:00
|
|
|
name : core.unstring;
|
2024-05-12 20:15:36 -04:00
|
|
|
cost : natural;
|
|
|
|
end record;
|
|
|
|
|
2024-05-29 10:20:35 -04:00
|
|
|
type points is array (enumeration) of core.point;
|
|
|
|
|
2024-05-12 20:15:36 -04:00
|
|
|
------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
count : constant natural := enumeration'pos (enumeration'last) + 1;
|
|
|
|
|
2024-06-01 11:46:17 -04:00
|
|
|
description : constant array (enumeration) of definition := (
|
2024-05-31 07:14:00 -04:00
|
|
|
sulphur => (core.unbound ("Sulphur"), 7),
|
|
|
|
mercury => (core.unbound ("Mercury"), 13),
|
|
|
|
mint => (core.unbound ("Mint"), 3),
|
|
|
|
cinnamon => (core.unbound ("Cinnamon"), 5),
|
|
|
|
apple => (core.unbound ("Apple"), 2),
|
|
|
|
peach => (core.unbound ("Peach"), 2),
|
|
|
|
pear => (core.unbound ("Pear"), 2),
|
|
|
|
banana => (core.unbound ("Banana"), 3),
|
|
|
|
orange => (core.unbound ("Orange"), 3),
|
|
|
|
plum => (core.unbound ("Plum"), 3),
|
|
|
|
cherry => (core.unbound ("Cherry"), 3),
|
|
|
|
lemon => (core.unbound ("Lemon"), 2),
|
|
|
|
potato => (core.unbound ("Potato"), 1),
|
|
|
|
wheat => (core.unbound ("Wheat"), 1),
|
|
|
|
carrot => (core.unbound ("Carrot"), 2),
|
|
|
|
cucumber => (core.unbound ("Cucumber"), 3),
|
|
|
|
onion => (core.unbound ("Onion"), 2),
|
|
|
|
garlic => (core.unbound ("Garlic"), 2),
|
|
|
|
eggplant => (core.unbound ("Eggplant"), 3),
|
|
|
|
tomato => (core.unbound ("Tomato"), 2),
|
|
|
|
meat => (core.unbound ("Meat"), 3),
|
|
|
|
fish_meat => (core.unbound ("Fish Meat"), 2),
|
|
|
|
skull => (core.unbound ("Skull"), 1),
|
|
|
|
animal_skull => (core.unbound ("Animal Skull"), 1),
|
|
|
|
bone => (core.unbound ("Bone"), 1),
|
|
|
|
rib_cage => (core.unbound ("Rib Cage"), 1),
|
|
|
|
animal_skin => (core.unbound ("Animal Skin"), 5),
|
|
|
|
animal_fur => (core.unbound ("Animal Fur"), 7)
|
2024-05-12 20:15:36 -04:00
|
|
|
);
|
|
|
|
|
2024-05-28 06:08:45 -04:00
|
|
|
default : points := (others => (1, 12));
|
|
|
|
|
2024-05-29 10:20:35 -04:00
|
|
|
icon : array (enumeration) of core.sprite;
|
|
|
|
|
2024-05-12 20:15:36 -04:00
|
|
|
------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
procedure configure;
|
|
|
|
|
2024-05-28 06:08:45 -04:00
|
|
|
procedure draw_points (data : in points := (others => (0, 0));
|
|
|
|
x : in integer := 0;
|
|
|
|
y : in integer := 0);
|
|
|
|
|
|
|
|
procedure save_points (here : in core.io.file_type; data : in points);
|
|
|
|
procedure load_points (here : in core.io.file_type; data : out points);
|
2024-05-12 20:15:36 -04:00
|
|
|
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
end material;
|