(svn r15091) -Add [NoAI] [API CHANGE]: introduce GetCategory() as a requirement for every library.nut, to indicate in which category it belongs. Currently the directory indicates the category, but this doesn't allow planned future additions

This commit is contained in:
truebrain
2009-01-15 15:56:10 +00:00
parent d62a85f2ce
commit 103cd2a5ed
8 changed files with 30 additions and 5 deletions

View File

@@ -8,6 +8,7 @@ class AyStar extends AILibrary {
function GetVersion() { return 4; }
function GetDate() { return "2008-06-11"; }
function CreateInstance() { return "AyStar"; }
function GetCategory() { return "Graph"; }
}
RegisterLibrary(AyStar());

View File

@@ -8,6 +8,7 @@ class Rail extends AILibrary {
function GetVersion() { return 1; }
function GetDate() { return "2008-09-22"; }
function CreateInstance() { return "Rail"; }
function GetCategory() { return "Pathfinder"; }
}
RegisterLibrary(Rail());

View File

@@ -8,6 +8,7 @@ class Road extends AILibrary {
function GetVersion() { return 3; }
function GetDate() { return "2008-06-18"; }
function CreateInstance() { return "Road"; }
function GetCategory() { return "Pathfinder"; }
}
RegisterLibrary(Road());

View File

@@ -8,6 +8,7 @@ class BinaryHeap extends AILibrary {
function GetVersion() { return 1; }
function GetDate() { return "2008-06-10"; }
function CreateInstance() { return "BinaryHeap"; }
function GetCategory() { return "Queue"; }
}
RegisterLibrary(BinaryHeap());

View File

@@ -8,6 +8,7 @@ class FibonacciHeap extends AILibrary {
function GetVersion() { return 1; }
function GetDate() { return "2008-08-22"; }
function CreateInstance() { return "FibonacciHeap"; }
function GetCategory() { return "Queue"; }
}
RegisterLibrary(FibonacciHeap());

View File

@@ -8,6 +8,7 @@ class PriorityQueue extends AILibrary {
function GetVersion() { return 2; }
function GetDate() { return "2008-06-10"; }
function CreateInstance() { return "PriorityQueue"; }
function GetCategory() { return "Queue"; }
}
RegisterLibrary(PriorityQueue());