diff options
author | yexo <yexo@openttd.org> | 2010-08-19 15:19:40 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-08-19 15:19:40 +0000 |
commit | 6c7384cabd9ffe684697f98a65a32871500284f8 (patch) | |
tree | 5fc1db4722624c680022fa6d0b5647dcb136b98a /src/ai/api/ai_list.hpp | |
parent | 1fe3ce9993fbb54dcb87eb1e6487cd2a2d049bbf (diff) | |
download | openttd-6c7384cabd9ffe684697f98a65a32871500284f8.tar.xz |
(svn r20562) -Change: [NoAI] Move all functions from AIList to AIAbstractList
Diffstat (limited to 'src/ai/api/ai_list.hpp')
-rw-r--r-- | src/ai/api/ai_list.hpp | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/src/ai/api/ai_list.hpp b/src/ai/api/ai_list.hpp deleted file mode 100644 index 1bd114aa2..000000000 --- a/src/ai/api/ai_list.hpp +++ /dev/null @@ -1,55 +0,0 @@ -/* $Id$ */ - -/* - * This file is part of OpenTTD. - * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. - * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>. - */ - -/** @file ai_list.hpp List custom entries. */ - -#ifndef AI_LIST_HPP -#define AI_LIST_HPP - -#include "ai_abstractlist.hpp" - -/** - * Creates an empty list, in which you can add integers. - * @ingroup AIList - */ -class AIList : public AIAbstractList { -public: - /** Get the name of this class to identify it towards squirrel. */ - static const char *GetClassName() { return "AIList"; } - -public: - /** - * Add an item to the list. - * @param item the item to add. - * @param value the value to assign. - */ - void AddItem(int32 item, int32 value); - - /** - * Change the value of an item in the list. - * @param item the item to change - * @param value the value to assign. - */ - void ChangeItem(int32 item, int32 value); - - /** - * Remove the item from the list. - * @param item the item to remove. - */ - void RemoveItem(int32 item); - -#ifndef DOXYGEN_SKIP - /** - * Used for [] set from Squirrel. - */ - SQInteger _set(HSQUIRRELVM vm); -#endif /* DOXYGEN_SKIP */ -}; - -#endif /* AI_LIST_HPP */ |