src/ai/core/ai_controller.hpp
branchnoai
changeset 9372 bd60b398f92b
parent 9364 dde316c28f1d
child 9388 032008c3f6e3
equal deleted inserted replaced
9371:cfa43f975d01 9372:bd60b398f92b
     6 #define AI_CONTROLLER_HPP
     6 #define AI_CONTROLLER_HPP
     7 
     7 
     8 #include "../../stdafx.h"
     8 #include "../../stdafx.h"
     9 
     9 
    10 class AIController {
    10 class AIController {
    11 public:
    11 private:
    12 	uint tick;
    12 	uint tick;
    13 
    13 
       
    14 public:
    14 	AIController() :
    15 	AIController() :
    15 		tick(0)
    16 		tick(0)
    16 	{}
    17 	{}
    17 
    18 
    18 	virtual ~AIController() { }
    19 	virtual ~AIController() { }
    24 
    25 
    25 	/**
    26 	/**
    26 	 * Increase the internal ticker.
    27 	 * Increase the internal ticker.
    27 	 */
    28 	 */
    28 	void IncreaseTick() { this->tick++; }
    29 	void IncreaseTick() { this->tick++; }
       
    30 
       
    31 	/**
       
    32 	 * Return the value of the ticker.
       
    33 	 */
       
    34 	uint GetTick() { return this->tick; }
    29 };
    35 };
    30 
    36 
    31 #endif /* AI_CONTROLLER_HPP */
    37 #endif /* AI_CONTROLLER_HPP */