src/ai/core/ai_object.hpp
author truelight
Tue, 13 Mar 2007 21:55:22 +0000
branchnoai
changeset 9365 c3d08e0b1083
parent 9361 7bb2bd22b16e
child 9388 032008c3f6e3
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 AIObject class */

#ifndef AI_OBJECT_HPP
#define AI_OBJECT_HPP

#include "../../stdafx.h"    // Needed for functions.h
#include "../../functions.h" // Needed for command.h
#include "../../command.h"   // Needed for CommandCallback

class AIObject {
protected:
	/**
	 * Executes a raw DoCommandCc for the AI.
	 */
	int32 DoCommandCc(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint procc, CommandCallback *callback);

	/**
	 * Executes a raw DoCommand for the AI.
	 */
	int32 DoCommand(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint procc) { return this->DoCommandCc(tile, p1, p2, flags, procc, NULL); }
};

#endif /* AI_OBJECT_HPP */