xhads/source/ai.ads

41 lines
1.4 KiB
Ada
Raw Normal View History

2024-03-22 00:37:54 -04:00
with core;
package ai is
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
type action is (
none, walk, talk, find,
);
2024-03-22 09:15:33 -04:00
type action_data is
2024-03-22 00:37:54 -04:00
record
2024-03-22 09:15:33 -04:00
base : natural;
data : core.procedure_pointer;
name : core.short_string;
2024-03-22 00:37:54 -04:00
end record;
------------------------------------------------------------------------------------------
2024-03-22 09:15:33 -04:00
procedure action_none is begin end action_none;
procedure action_walk is begin end action_walk;
procedure action_talk is begin end action_talk;
procedure action_find is begin end action_find;
action_list : constant array (action) of action_data := (
(000000, action_none, "idle "),
(000001, action_walk, "walking "),
(000300, action_talk, "talking "),
(050060, action_find, "finding ")
);
2024-03-22 00:37:54 -04:00
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
procedure configure;
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
end ai;