src/ai/api/ai_base.cpp
branchnoai
changeset 9660 d0a430e8310b
parent 9440 0986434f3af8
child 9723 eee46cb39750
--- a/src/ai/api/ai_base.cpp	Sat Jul 14 23:35:46 2007 +0000
+++ b/src/ai/api/ai_base.cpp	Sat Jul 14 23:49:31 2007 +0000
@@ -4,7 +4,7 @@
 
 #include "ai_base.hpp"
 
-uint32 AIBase::Rand()
+/* static */ uint32 AIBase::Rand()
 {
 	/* We pick RandomRange if we are in SP (so when saved, we do the same over and over)
 	 *   but we pick InteractiveRandomRange if we are a network_server or network-client. */
@@ -12,7 +12,7 @@
 	return ::Random();
 }
 
-uint AIBase::RandRange(uint max)
+/* static */ uint AIBase::RandRange(uint max)
 {
 	/* We pick RandomRange if we are in SP (so when saved, we do the same over and over)
 	 *   but we pick InteractiveRandomRange if we are a network_server or network-client. */
@@ -20,7 +20,7 @@
 	return ::RandomRange(max);
 }
 
-bool AIBase::Chance(uint out, uint max)
+/* static */ bool AIBase::Chance(uint out, uint max)
 {
-	return (uint16)this->Rand() <= (uint16)((65536 * out) / max);
+	return (uint16)AIBase::Rand() <= (uint16)((65536 * out) / max);
 }