From 103cd2a5ed5df7f166c2024e0e4e85d4790e3529 Mon Sep 17 00:00:00 2001 From: truebrain Date: Thu, 15 Jan 2009 15:56:10 +0000 Subject: (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 --- bin/ai/library/graph/aystar/library.nut | 1 + bin/ai/library/pathfinder/rail/library.nut | 1 + bin/ai/library/pathfinder/road/library.nut | 1 + bin/ai/library/queue/binary_heap/library.nut | 1 + bin/ai/library/queue/fibonacci_heap/library.nut | 1 + bin/ai/library/queue/priority_queue/library.nut | 1 + 6 files changed, 6 insertions(+) (limited to 'bin/ai/library') diff --git a/bin/ai/library/graph/aystar/library.nut b/bin/ai/library/graph/aystar/library.nut index f1c84748c..1f563961a 100644 --- a/bin/ai/library/graph/aystar/library.nut +++ b/bin/ai/library/graph/aystar/library.nut @@ -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()); diff --git a/bin/ai/library/pathfinder/rail/library.nut b/bin/ai/library/pathfinder/rail/library.nut index 155adaad1..8f0dbad08 100644 --- a/bin/ai/library/pathfinder/rail/library.nut +++ b/bin/ai/library/pathfinder/rail/library.nut @@ -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()); diff --git a/bin/ai/library/pathfinder/road/library.nut b/bin/ai/library/pathfinder/road/library.nut index 06c21f1de..727cdb9b0 100644 --- a/bin/ai/library/pathfinder/road/library.nut +++ b/bin/ai/library/pathfinder/road/library.nut @@ -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()); diff --git a/bin/ai/library/queue/binary_heap/library.nut b/bin/ai/library/queue/binary_heap/library.nut index 30489cbc2..b0caf7d09 100644 --- a/bin/ai/library/queue/binary_heap/library.nut +++ b/bin/ai/library/queue/binary_heap/library.nut @@ -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()); diff --git a/bin/ai/library/queue/fibonacci_heap/library.nut b/bin/ai/library/queue/fibonacci_heap/library.nut index 244228788..727a2477d 100644 --- a/bin/ai/library/queue/fibonacci_heap/library.nut +++ b/bin/ai/library/queue/fibonacci_heap/library.nut @@ -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()); diff --git a/bin/ai/library/queue/priority_queue/library.nut b/bin/ai/library/queue/priority_queue/library.nut index 1c17848bf..22e97e4e9 100644 --- a/bin/ai/library/queue/priority_queue/library.nut +++ b/bin/ai/library/queue/priority_queue/library.nut @@ -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()); -- cgit v1.2.3-70-g09d2