src/ai/core/ai_controller.hpp
author truelight
Tue, 13 Mar 2007 21:55:22 +0000
branchnoai
changeset 9365 c3d08e0b1083
parent 9364 dde316c28f1d
child 9372 bd60b398f92b
permissions -rw-r--r--
(svn r9151) [NoAI] -Add: added squirrel module that loads squirrel scripts and
executes them. For now it only spams the consule with "gameLoop"
/* $Id$ */

/** @file declaration of class for AIController class */

#ifndef AI_CONTROLLER_HPP
#define AI_CONTROLLER_HPP

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

class AIController {
public:
	uint tick;

	AIController() :
		tick(0)
	{}

	virtual ~AIController() { }

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

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

#endif /* AI_CONTROLLER_HPP */