#include "test.h"
#include "mock_inventorymanager.h"
#include "mock_server.h"
#include "mock_serveractiveobject.h"
Classes | |
class | TestMoveAction |
Functions | |
static ItemStack | parse_itemstack (const char *s) |
static void | apply_action (const char *s, InventoryManager *inv, ServerActiveObject *obj, IGameDef *gamedef) |
static bool | check_function (lua_State *L, bool expect_swap) |
Variables | |
static TestMoveAction | g_test_instance |
|
static |
References InventoryAction::apply(), and InventoryAction::deSerialize().
Referenced by TestMoveAction::testCallbacks(), TestMoveAction::testCallbacksSwap(), TestMoveAction::testMove(), TestMoveAction::testMoveFillStack(), TestMoveAction::testMovePartial(), TestMoveAction::testMoveSomewhere(), TestMoveAction::testMoveSomewherePartial(), TestMoveAction::testMoveUnallowed(), TestMoveAction::testSwap(), TestMoveAction::testSwapFromUnallowed(), and TestMoveAction::testSwapToUnallowed().
|
static |
References errorstream, and PUSH_ERROR_HANDLER.
Referenced by TestMoveAction::testCallbacks(), and TestMoveAction::testCallbacksSwap().
|
static |
References ItemStack::deSerialize().
Referenced by TestMoveAction::testCallbacks(), TestMoveAction::testCallbacksSwap(), TestMoveAction::testMove(), TestMoveAction::testMoveFillStack(), TestMoveAction::testMovePartial(), TestMoveAction::testMoveSomewhere(), TestMoveAction::testMoveSomewherePartial(), TestMoveAction::testMoveUnallowed(), TestMoveAction::testSwap(), TestMoveAction::testSwapFromUnallowed(), and TestMoveAction::testSwapToUnallowed().
|
static |