hedgewars/uAIAmmoTests.pas
changeset 7752 65bacd3ba69e
parent 7730 2013733f9ca9
child 7760 ccc8bd5205ff
equal deleted inserted replaced
7751:8c7f5c43ea5e 7752:65bacd3ba69e
  1111     ap.Power:= BadTurn; // use it as max score value in checkCakeWalk
  1111     ap.Power:= BadTurn; // use it as max score value in checkCakeWalk
  1112 
  1112 
  1113     //FillChar(cake, sizeof(cake), 0);
  1113     //FillChar(cake, sizeof(cake), 0);
  1114     cake.Radius:= 7;
  1114     cake.Radius:= 7;
  1115     cake.CollisionMask:= $FF7F;
  1115     cake.CollisionMask:= $FF7F;
       
  1116     cake.Hedgehog:= Me^.Hedgehog;
  1116 
  1117 
  1117     // check left direction
  1118     // check left direction
  1118     cake.Angle:= 3;
  1119     cake.Angle:= 3;
  1119     cake.dX.isNegative:= true;
  1120     cake.dX.isNegative:= true;
  1120     cake.X:= Me^.X - _3;
  1121     cake.X:= Me^.X - _3;