|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 5120 (0x1400)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Trajectoire, seg_059c1c
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
with Asteroide;
with Definitions;
with Serveur;
with Text_Io;
package body Trajectoire is
procedure Suivre_Cap (Coord : in out Definitions.Position;
Direction : in out Definitions.Cap) is
Pb : Boolean := False;
begin
Text_Io.Put_Line ("cap : " & Definitions.Cap'Image (Direction) &
" coord " & Integer'Image (Coord.Colonne) &
" " & Integer'Image (Coord.Ligne));
case Direction is
when Definitions.Nord =>
if Coord.Ligne > 1 then
Coord.Ligne := Coord.Ligne - 1;
else
Pb := True;
end if;
when Definitions.Sud =>
if Coord.Ligne < 9 then --23
Coord.Ligne := Coord.Ligne + 1;
else
Pb := True;
end if;
when Definitions.Est =>
if Coord.Colonne < 10 then --80
Coord.Colonne := Coord.Colonne + 1;
else
Pb := True;
end if;
when Definitions.Ouest =>
if Coord.Colonne > 1 then
Coord.Colonne := Coord.Colonne - 1;
else
Pb := True;
end if;
when Definitions.Nord_Est =>
if Coord.Ligne > 1 and Coord.Colonne < 10 then
Coord.Colonne := Coord.Colonne + 1;
Coord.Ligne := Coord.Ligne - 1;
else
Pb := True;
end if;
when Definitions.Nord_Ouest =>
if Coord.Ligne > 1 and Coord.Colonne > 1 then
Coord.Colonne := Coord.Colonne - 1;
Coord.Ligne := Coord.Ligne - 1;
else
Pb := True;
end if;
when Definitions.Sud_Est =>
if Coord.Colonne < 10 and Coord.Ligne < 9 then
Coord.Ligne := Coord.Ligne + 1;
else
Pb := True;
end if;
when Definitions.Sud_Ouest =>
if Coord.Colonne > 1 and Coord.Ligne < 9 then
Coord.Ligne := Coord.Ligne + 1;
Coord.Colonne := Coord.Colonne - 1;
else
Pb := True;
end if;
end case;
if Pb = True then
Text_Io.Put_Line ("pb ");
Serveur.Serveur.Avertir (Coord);
Asteroide.Initialise (Coord, Direction);
Pb := False;
end if;
end Suivre_Cap;
end Trajectoire;
nblk1=4
nid=2
hdr6=6
[0x00] rec0=23 rec1=00 rec2=01 rec3=03c
[0x01] rec0=1c rec1=00 rec2=04 rec3=03c
[0x02] rec0=1c rec1=00 rec2=03 rec3=000
[0x03] rec0=06 rec1=82 rec2=46 rec3=642
tail 0x21768fd5e891490b69c86 0x42a00088462060003
Free Block Chain:
0x2: 0000 00 00 03 59 80 0c 20 20 20 20 20 65 6e 64 20 69 ┆ Y end i┆