Skip to content

Commit

Permalink
Fertige Unit1
Browse files Browse the repository at this point in the history
  • Loading branch information
13_mark authored Feb 1, 2018
1 parent e6bcf79 commit fea6662
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Unit1.pas
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ procedure TForm1.FormCreate(Sender: TObject);
procedure TForm1.FormKeyPress(Sender: TObject; var Key: Char);
begin

Edit1.Text:= IntToStr(Karte.getPosX);
Edit2.Text:= IntToStr(Karte.getPosy);


if (key = 'a') and Karte.prooveCoords(Karte.getPosX + 5,Karte.getPosY) then
begin
Expand Down Expand Up @@ -103,7 +102,7 @@ procedure TForm1.FormKeyPress(Sender: TObject; var Key: Char);
if (Key = 'x') and (abs(Bot.getDistanceY()) <= abs(Bot.getFightDistanceY())) and (abs(Bot.getDistanceX()) <= abs(Bot.getFightDistanceX())) then

begin
Timer1.Enabled:= false;

ShowMessage(Bot.startConversation());

Kampf := TFightSystem.Create(Form1,0,0);
Expand Down

0 comments on commit fea6662

Please sign in to comment.