(svn r9159) [NoAI] -Change: moved 'tick' from public to private. Use GetTick() to get its value. noai
authortruelight
Wed, 14 Mar 2007 02:14:13 +0000
branchnoai
changeset 9372 bd60b398f92b
parent 9371 cfa43f975d01
child 9373 d03563181088
(svn r9159) [NoAI] -Change: moved 'tick' from public to private. Use GetTick() to get its value.
src/ai/core/ai_controller.hpp
--- a/src/ai/core/ai_controller.hpp	Wed Mar 14 01:58:36 2007 +0000
+++ b/src/ai/core/ai_controller.hpp	Wed Mar 14 02:14:13 2007 +0000
@@ -8,9 +8,10 @@
 #include "../../stdafx.h"
 
 class AIController {
-public:
+private:
 	uint tick;
 
+public:
 	AIController() :
 		tick(0)
 	{}
@@ -26,6 +27,11 @@
 	 * Increase the internal ticker.
 	 */
 	void IncreaseTick() { this->tick++; }
+
+	/**
+	 * Return the value of the ticker.
+	 */
+	uint GetTick() { return this->tick; }
 };
 
 #endif /* AI_CONTROLLER_HPP */