49 lines
2.8 KiB
Ada
49 lines
2.8 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 monster is
|
|
|
|
------------------------------------------------------------------------------------------
|
|
|
|
type list is (
|
|
goblin_slave, goblin_worker, goblin_warrior, goblin_boar_rider, goblin_shaman, goblin_chief, goblin_king, goblin_ogre
|
|
);
|
|
|
|
type mark is mod 72;
|
|
|
|
------------------------------------------------------------------------------------------
|
|
|
|
type constant_type is new core.constant_type with
|
|
record
|
|
health_limit : natural := 0;
|
|
armour_limit : natural := 0;
|
|
mana_limit : natural := 0;
|
|
stamina_limit : natural := 0;
|
|
attack_range : natural := 0;
|
|
end record;
|
|
|
|
type variable_type is new core.variable_type with
|
|
record
|
|
health : natural := 0;
|
|
armour : natural := 0;
|
|
mana : natural := 0;
|
|
stamina : natural := 0;
|
|
end record;
|
|
|
|
------------------------------------------------------------------------------------------
|
|
|
|
------------------------------------------------------------------------------------------
|
|
|
|
end monster;
|