Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Multimedia (https://www.delphipraxis.net/16-multimedia/)
-   -   Delphi DelphiX + A* (https://www.delphipraxis.net/29160-delphix-%2A.html)

maximov 12. Sep 2004 02:28

Re: DelphiX + A*
 
Zitat:

Zitat von mimi
...

Delphi-Quellcode:
TMap = record
Typ, tex:Integer;
Begebear:Boolean;

end;

:shock: Schöne map! Sogar begebar. In dem fall ist lässt sich A* sehr schön kürzen:
Delphi-Quellcode:
function findPath(const aMap:TMap):boolean;
begin
  assert(aMAp<>nil);
  result := aMap.begebar and (typ = tex);
end;
:mrgreen:

Also im ernst mimi, du bist lange genug dabei, um zu wissen was du tun musst, um vernünftige antworten zu erhalten.


Alle Zeitangaben in WEZ +1. Es ist jetzt 23:05 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz