You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-22Lines changed: 19 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
## astar-algorithm
2
2
3
-
[](https://travis-ci.org/justinhj/astar-algorithm-cpp)[](https://gitter.im/astar-algorithm-cpp/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
This software is released under the MIT License, see license.txt
26
31
27
32
### Commercial Use
28
33
29
-
This software has been used in AAA video games and is well tested in the wild. Please let me know if you use this code in your games, studies or hobby projects.
34
+
This software has been used in a number of AAA video games, which is an area of software that relies on efficiency and reliability. In addition it has been used in a number of academic and personal projects that require efficient search. Please
30
35
31
-
If you feel the need to pay money for this code, it is not required by the license, but you could contribute to Unicef, a charity which helps children worldwide, http://www.unicef.org/that would be awesome.
36
+
Commercial users of the code are encouraged to make a donation to http://www.unicef.org/if they find this project useful.
32
37
33
38
### Projects using this code
34
39
35
40
If you wish to be added to the list of known products/educational projects using the code please contact me.
36
41
37
42
* Gun, Activision
38
-
* Company of Heroes and Company of Heroes Online, Relic Entertainment
43
+
* Company of Heroes (various versions), Relic Entertainment
39
44
* Angel Engine, a game prototyping engine http://code.google.com/p/angel-engine/
40
45
* War of Sonria, a strategy war game on PSP and Playstation 3 by Playground Squad
41
46
* Lighthouses AI contest https://github.com/marcan/lighthouses_aicontest
@@ -74,24 +79,16 @@ For path finder
74
79
pathfind has no arguments. You can edit the simple map in pathfind.cpp and the start
75
80
and goal co-ordinates to experiement with the pathfinder.
76
81
77
-
Fixed size allocator notes: As mentioned briefly in the tutorial you can enable and disable the
78
-
faster memory allocation. This allocates a fixed size block of memory, so you have to specify this size
79
-
with the astar constructor. You need to enlarge it if you hit an out of memory assert during the
80
-
search.
81
-
82
-
Compilation notes:
83
-
84
-
Microsoft Visual C++ : Confirmed working with version 8.0.50727 with some deprecation warnings
85
-
I'm going to leave the deprecation warnings in so that it still works cleanly with GCC.
86
-
TODO Make a non-deprecated compliant version using compiler checking
87
-
88
-
Compiled with:
82
+
#### Fixed size allocator
89
83
90
-
Apple clang version 12.0.0 (clang-1200.0.32.28)
91
-
Target: x86_64-apple-darwin19.6.0
84
+
FSA is just a simple memory pool that uses a doubly linked list of available nodes in an array. This is
85
+
a very efficient way to manage memory. It has no automatic resizing, so you must account for the fact it
86
+
will use a fixed block of memory per instance and will report an error when memory is exhausted.
92
87
93
-
Please let me know if it does not compile on a particular platform by opening an issue.
88
+
As mentioned briefly in the tutorial you can enable and disable the faster memory allocation. This allocates
89
+
a fixed size block of memory, so you have to specify this size with the astar constructor. You need to enlarge
90
+
it if you hit an out of memory assert during the search.
94
91
95
-
Cheers!
92
+
Compatibility notes:
96
93
97
-
Justin
94
+
This version of the code requires any standards compliant C++98/03
0 commit comments