|
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 - download
Length: 5120 (0x1400) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Blocs_Du_Scenario, seg_048dfa
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─ ⟦5a81ac88f⟧ »Space Info Vol 1« └─⟦this⟧
with Nos_Arbres; with Interface_Structure; with Variables; with Nos_Chaines; with Text_Io; package body Blocs_Du_Scenario is type P_Bloc is access T_Bloc; function Difference (T1 : T_Bloc; T2 : T_Bloc) return Integer; package Tree_Of_Bloc is new Nos_Arbres (T_Bloc); The_Tree : Tree_Of_Bloc.Object := Tree_Of_Bloc.Create_Tree; New_Bloc : P_Bloc; Initial : Boolean := True; Initiales : Nos_Chaines.String_Text := Nos_Chaines.Infinite_String.Value ("initiales"); Generales : Nos_Chaines.String_Text := Nos_Chaines.Infinite_String.Value ("generales"); Locales : Nos_Chaines.String_Text; Position_Courante : Nos_Chaines.String_Text := Nos_Chaines.Infinite_String.Value ("positioncourante"); function Difference (T1 : T_Bloc; T2 : T_Bloc) return Integer is begin return Nos_Chaines.Difference (T1.Name, T2.Name); end Difference; procedure Make_New_Bloc (Nom : Nos_Chaines.String_Text) is begin New_Bloc := new T_Bloc; Nos_Chaines.Copy (New_Bloc.Name, Nom); Text_Io.Put ("new bloc started ..."); Nos_Chaines.Print_Line (New_Bloc.Name); Traduction_Scenario.Start_Bloc; end Make_New_Bloc; procedure End_Of_Bloc is begin Traduction_Scenario.Break_End_Of_Bloc (New_Bloc.Contenu); Text_Io.Put ("ajout "); Nos_Chaines.Print_Line (New_Bloc.Name); Tree_Of_Bloc.Add (An_Element => New_Bloc.all, A_Tree => The_Tree); end End_Of_Bloc; procedure Do_The_Bloc (Nom : Nos_Chaines.String_Text) is Bloc : T_Bloc; Trouve : Boolean; begin Bloc.Name := Nom; Text_Io.Put ("go to search "); Nos_Chaines.Print_Line (Bloc.Name); Tree_Of_Bloc.Find (An_Element => Bloc, Found => Trouve, A_Tree => The_Tree); if Trouve then Text_Io.Put ("************************************************************************go to do "); Nos_Chaines.Print_Line (Bloc.Name); Traduction_Scenario.Do_The (Bloc.Contenu); Text_Io.Put ("************************************************************************is done "); Nos_Chaines.Print_Line (Bloc.Name); end if; end Do_The_Bloc; procedure Do_The_Scenario is begin Variables.Deplacement_Is_Done := False; if Initial then Do_The_Bloc (Initiales); Text_Io.Put ("***********************AFTER INITIALES *****************"); Nos_Chaines.Print_Line (Variables.Get_Value (Variables.Var_Position_Courante)); Initial := False; else Nos_Chaines.Copy (Variables.Var_Position_Courante, Interface_Structure.Get_Position (Variables.Var_Joueur)); Do_The_Bloc (Generales); Text_Io.Put ("***************AFTER GENERALES*************************"); Nos_Chaines.Print_Line (Variables.Get_Value (Variables.Var_Position_Courante)); Do_The_Bloc (Variables.Get_Value (Variables.Var_Position_Courante)); Text_Io.Put ("*****************AFTER LOCALES***********************"); Nos_Chaines.Print_Line (Variables.Get_Value (Position_Courante)); end if; end Do_The_Scenario; end Blocs_Du_Scenario;
nblk1=4 nid=0 hdr6=8 [0x00] rec0=20 rec1=00 rec2=01 rec3=050 [0x01] rec0=1c rec1=00 rec2=04 rec3=046 [0x02] rec0=18 rec1=00 rec2=03 rec3=042 [0x03] rec0=10 rec1=00 rec2=02 rec3=000 tail 0x2174d007a865a6da4107d 0x42a00088462060003