src/ai/core/ai_controller.hpp
author truelight
Wed, 14 Mar 2007 20:25:43 +0000
branchnoai
changeset 9388 032008c3f6e3
parent 9372 bd60b398f92b
child 9404 ef9e171617a3
permissions -rw-r--r--
(svn r9180) [NoAI] -Fix: copy/pasting can be nasty: wrong @file headers
/* $Id$ */

/** @file ai_controler.hpp declaration of class for AIController class */

#ifndef AI_CONTROLLER_HPP
#define AI_CONTROLLER_HPP

#include "../../stdafx.h"

class AIController {
private:
	uint tick;

public:
	AIController() :
		tick(0)
	{}

	virtual ~AIController() { }

	/**
	 * This function is called every tick.
	 */
	virtual void GameLoop() = 0;

	/**
	 * Increase the internal ticker.
	 */
	void IncreaseTick() { this->tick++; }

	/**
	 * Return the value of the ticker.
	 */
	uint GetTick() { return this->tick; }
};

#endif /* AI_CONTROLLER_HPP */