xabina/animal.ads
2023-10-15 10:01:21 -04:00

142 lines
13 KiB
Ada

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2023 - Ognjen 'xolatile' Milan Robovic
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- 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
-- 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
-- implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- 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, but realized that I keep my folders messy... Since it's bothersome to find my old Ada projects and share them here, I decided that the most easy thing to do is to
-- write a new program in Ada, a tiny game. Work in progress, it's messy and ugly for now...
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
with core;
package animal is
------------------------------------------------------------------------------------------
type animal_list is (
ANIMAL_PIG, ANIMAL_COW, ANIMAL_CHICKEN, ANIMAL_SHEEP, ANIMAL_BOAR, ANIMAL_GOAT, ANIMAL_AUROCH, ANIMAL_DUCK,
ANIMAL_DOG, ANIMAL_CAT, ANIMAL_RABBIT, ANIMAL_HAMSTER, ANIMAL_HORSE, ANIMAL_DONKEY, ANIMAL_CAMEL, ANIMAL_ELEPHANT,
ANIMAL_OWL, ANIMAL_HAWK, ANIMAL_PIGEON, ANIMAL_VULTURE, ANIMAL_CROW, ANIMAL_PHEASANT, ANIMAL_SPARROW, ANIMAL_ALBATROSS,
ANIMAL_SARDINE, ANIMAL_HERRING, ANIMAL_CATFISH, ANIMAL_CARP, ANIMAL_WHALE, ANIMAL_SHARK, ANIMAL_SQUID, ANIMAL_SAWFISH,
ANIMAL_WORM, ANIMAL_BEE, ANIMAL_CENTIPEDE, ANIMAL_SPIDER, ANIMAL_FROG, ANIMAL_RAT, ANIMAL_BAT, ANIMAL_MOLE,
ANIMAL_WOLF, ANIMAL_FOX, ANIMAL_BEAR, ANIMAL_MAMMOTH, ANIMAL_ELK, ANIMAL_MOOSE, ANIMAL_DEER, ANIMAL_PEEBLES,
ANIMAL_LION, ANIMAL_HYENA, ANIMAL_BISON, ANIMAL_ZEBRA, ANIMAL_GIRAFFE, ANIMAL_CROCODILE, ANIMAL_MONKEY, ANIMAL_GNU,
ANIMAL_CARIBOU, ANIMAL_SEAL, ANIMAL_MORSE, ANIMAL_PENGUIN, ANIMAL_TURTLE, ANIMAL_CAYMAN, ANIMAL_OTTER, ANIMAL_SNAKE,
ANIMAL_LIZARD, ANIMAL_DAEODON, ANIMAL_SLIME, ANIMAL_AXOLOTL, ANIMAL_HEDGEHOG, ANIMAL_CATERPILLAR, ANIMAL_CRAB, ANIMAL_SCORPION,
ANIMAL_GIANT_LIZARD, ANIMAL_GIANT_CENTIPEDE, ANIMAL_GIANT_SPIDER, ANIMAL_GIANT_SLOTH,
ANIMAL_GIANT_OWL, ANIMAL_GIANT_SCORPION, ANIMAL_GIANT_AXOLOTL, ANIMAL_GIANT_WORM
);
type animal_mark is mod 72;
------------------------------------------------------------------------------------------
type animal_constant_type is new core.entity_constant_type with
record
health_limit : natural := 0;
attack_range : natural := 0;
defense_range : natural := 0;
end record;
type animal_variable_type is new core.entity_variable_type with
record
health : natural := 0;
end record;
type animal_constant_list is array (animal_list) of animal_constant_type;
type animal_variable_list is array (animal_mark) of animal_variable_type;
------------------------------------------------------------------------------------------
animal_constant_data : constant animal_constant_list := (
(core.ENTITY_ANIMAL, "Pig ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Cow ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Chicken ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Sheep ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Boar ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Goat ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Auroch ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Duck ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Dog ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Cat ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Rabbit ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Hamster ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Horse ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Donkey ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Camel ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Elephant ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Owl ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Hawk ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Pigeon ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Vulture ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Crow ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Pheasant ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Sparrow ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Albatross ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Sardine ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Herring ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Catfish ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Carp ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Whale ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Shark ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Squid ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Sawfish ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Worm ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Bee ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Centipede ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Spider ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Frog ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Rat ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Bat ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Mole ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Wolf ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Fox ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Bear ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Mammoth ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Elk ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Moose ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Deer ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Peebles ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Lion ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Hyena ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Bison ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Zebra ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Giraffe ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Crocodile ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Monkey ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Gnu ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Caribou ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Seal ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Morse ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Penguin ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Turtle ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Cayman ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Otter ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Snake ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Lizard ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Daeodon ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Slime ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Axolotl ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Hedgehog ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Caterpillar ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Crab ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Scorpion ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Giant Lizard ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Giant Centipede ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Giant Spider ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Giant Sloth ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Giant Owl ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Giant Scorpion ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Giant Axolotl ", 'a', core.colour.green, core.effect.normal, 11, 11, 11),
(core.ENTITY_ANIMAL, "Giant Worm ", 'a', core.colour.green, core.effect.normal, 11, 11, 11)
);
animal_variable_data : animal_variable_list;
------------------------------------------------------------------------------------------
end animal;