#include <iostream>#include "../actions/moveunitcommand.h"#include "../loaders.h"#include "../itemrepository.h"#include "unittestutil.h"#include "../tasks/taskcontainer.h"Include dependency graph for movementtest.cpp:

Go to the source code of this file.
Functions | |
| void | testMovement1 () |
| void | testMovementRF () |
| void | testMovementTracks () |
| void | testHeightChangeAI () |
| void | testHeightChangeGUI () |
| void | testMovementFieldsReachable () |
| static void | runTasks (GameMap *gamemap) |
| static void | moveUnitTest (GameMap *game, Vehicle *veh, const MapCoordinate &destination, int turns) |
| void | testLongDistMovement () |
| void | testMapResizeWithMovement () |
| void | testMovement () |
| static void moveUnitTest | ( | GameMap * | game, | |
| Vehicle * | veh, | |||
| const MapCoordinate & | destination, | |||
| int | turns | |||
| ) | [static] |
Definition at line 186 of file movementtest.cpp.
References assertOrThrow, createTestingContext(), ActionRegistry::MoveUnitCommand, next_turn(), runTasks(), ActionResult::successful(), and GameMap::tasks.
Referenced by testLongDistMovement().
| static void runTasks | ( | GameMap * | gamemap | ) | [static] |
Definition at line 164 of file movementtest.cpp.
References createTestingContext(), TaskInterface::operatable(), TaskContainer::pendingCommands, and GameMap::tasks.
Referenced by moveUnitTest(), and testMapResizeWithMovement().
| void testHeightChangeAI | ( | ) |
Definition at line 91 of file movementtest.cpp.
References assertOrThrow, createTestingContext(), ActionRegistry::MoveUnitCommand, startMap(), and ActionResult::successful().
Referenced by testMovement().
| void testHeightChangeGUI | ( | ) |
Definition at line 114 of file movementtest.cpp.
References assertOrThrow, createTestingContext(), ActionRegistry::MoveUnitCommand, startMap(), and ActionResult::successful().
Referenced by testMovement().
| void testLongDistMovement | ( | ) |
Definition at line 213 of file movementtest.cpp.
References moveUnitTest(), and startMap().
Referenced by testMovement().
| void testMapResizeWithMovement | ( | ) |
Definition at line 231 of file movementtest.cpp.
References assertOrThrow, createTestingContext(), ActionRegistry::MoveUnitCommand, next_turn(), runTasks(), startMap(), and ActionResult::successful().
Referenced by testMovement().
| void testMovement | ( | ) |
Definition at line 261 of file movementtest.cpp.
References testHeightChangeAI(), testHeightChangeGUI(), testLongDistMovement(), testMapResizeWithMovement(), testMovement1(), testMovementFieldsReachable(), testMovementRF(), and testMovementTracks().
Referenced by runUnitTests().
| void testMovement1 | ( | ) |
Definition at line 18 of file movementtest.cpp.
References assertOrThrow, createTestingContext(), Vehicle::getMovement(), move(), startMap(), ActionResult::successful(), and testCargoMovement().
Referenced by testMovement().
| void testMovementFieldsReachable | ( | ) |
Definition at line 140 of file movementtest.cpp.
References assertOrThrow, createTestingContext(), ActionRegistry::MoveUnitCommand, startMap(), and ActionResult::successful().
Referenced by testMovement().
| void testMovementRF | ( | ) |
Definition at line 52 of file movementtest.cpp.
References assertOrThrow, ContainerBase::damage, move(), and startMap().
Referenced by testMovement().
| void testMovementTracks | ( | ) |
Definition at line 68 of file movementtest.cpp.
References assertOrThrow, createTestingContext(), move(), objectTypeRepository, and startMap().
Referenced by testMovement().
1.5.1