diff options
author | Nipun Garg | 2019-06-22 05:47:39 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:54 +0200 |
commit | 4965fecadc612b5e55a3fb2e6b6690764dd86d16 (patch) | |
tree | a4ed1fdd9614658431cc18e9c127e57a0fb476a4 | |
parent | db838a656eb85755659ff93769269b66490652f7 (diff) | |
download | scummvm-rg350-4965fecadc612b5e55a3fb2e6b6690764dd86d16.tar.gz scummvm-rg350-4965fecadc612b5e55a3fb2e6b6690764dd86d16.tar.bz2 scummvm-rg350-4965fecadc612b5e55a3fb2e6b6690764dd86d16.zip |
HDB: Add stubbed Action Functions
-rw-r--r-- | engines/hdb/ai-use.cpp | 86 | ||||
-rw-r--r-- | engines/hdb/ai.h | 25 |
2 files changed, 111 insertions, 0 deletions
diff --git a/engines/hdb/ai-use.cpp b/engines/hdb/ai-use.cpp new file mode 100644 index 0000000000..fa78aed218 --- /dev/null +++ b/engines/hdb/ai-use.cpp @@ -0,0 +1,86 @@ +/* ScummVM - Graphic Adventure Engine + * + * ScummVM is the legal property of its developers, whose names + * are too numerous to list here. Please refer to the COPYRIGHT + * file distributed with this source distribution. + * + * This program 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; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be AI::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 this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + */ + +#include "hdb/hdb.h" + +namespace HDB { + +// Black Door Switch +bool AI::useSwitch(AIEntity *e, int x, int y, int targetX, int targetY, int onTile) { + warning("STUB: Define useSwitch"); + return false; +} + +bool AI::useSwitchOn(AIEntity *e, int x, int y, int targetX, int targetY, int offTile) { + warning("STUB: Define useSwitchOn"); + return false; +} + +bool AI::useSwitch2(AIEntity *e, int x, int y, int targetX, int targetY) { + warning("STUB: Define useSwitch2"); + return false; +} + +// Colored Keycard Switch +bool AI::useLockedSwitch(AIEntity *e, int x, int y, int targetX, int targetY, int onTile, AIType item, char *keyerror) { + warning("STUB: Define useLockedSwitch"); + return false; +} + +bool AI::useLockedSwitchOn(AIEntity *e, int x, int y, int targetX, int targetY, int offTile, AIType item) { + warning("STUB: Define useLockedSwitchOn"); + return false; +} + +// Purple Cell Holder Switch +bool AI::useCellHolder(AIEntity *e, int x, int y, int targetX, int targetY) { + warning("STUB: Define useCellHolder"); + return false; +} + +// Touchplate +bool AI::useTouchplate(AIEntity *e, int x, int y, int targetX, int targetY, int type) { + warning("STUB: Define useTouchplate"); + return false; +} +bool AI::useTouchplateOn(AIEntity *e, int x, int y, int targetX, int targetY, int type) { + warning("STUB: Define useTouchplateOn"); + return false; +} + +// Normal Door +bool AI::useDoorOpenClose(AIEntity *e, int x, int y) { + warning("STUB: Define useDoorOpenClose"); + return false; +} +bool AI::useAutoDoorOpenClose(AIEntity *e, int x, int y) { + warning("STUB: Define useAutoDoorOpenClose"); + return false; +} + +// Any Type Door +bool AI::useDoorOpenCloseBot(AIEntity *e, int x, int y) { + warning("STUB: Define useDoorOpenCloseBot"); + return false; +} + +} // End of Namespace
\ No newline at end of file diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h index 8206a2ce8e..b6a7094450 100644 --- a/engines/hdb/ai.h +++ b/engines/hdb/ai.h @@ -834,6 +834,31 @@ public: private: + // Action Functions + + // Black Door Switch + bool useSwitch(AIEntity *e, int x, int y, int targetX, int targetY, int onTile); + bool useSwitchOn(AIEntity *e, int x, int y, int targetX, int targetY, int offTile); + bool useSwitch2(AIEntity *e, int x, int y, int targetX, int targetY); + + // Colored Keycard Switch + bool useLockedSwitch(AIEntity *e, int x, int y, int targetX, int targetY, int onTile, AIType item, char *keyerror); + bool useLockedSwitchOn(AIEntity *e, int x, int y, int targetX, int targetY, int offTile, AIType item); + + // Purple Cell Holder Switch + bool useCellHolder(AIEntity *e, int x, int y, int targetX, int targetY); + + // Touchplate + bool useTouchplate(AIEntity *e, int x, int y, int targetX, int targetY, int type); + bool useTouchplateOn(AIEntity *e, int x, int y, int targetX, int targetY, int type); + + // Normal Door + bool useDoorOpenClose(AIEntity *e, int x, int y); + bool useAutoDoorOpenClose(AIEntity *e, int x, int y); + + // Any Type Door + bool useDoorOpenCloseBot(AIEntity *e, int x, int y); + Common::Array<AIEntity *> *_ents; Common::Array<AIEntity *> *_floats; AIEntity *_player; |