aboutsummaryrefslogtreecommitdiff
path: root/src/unittest
Commit message (Expand)AuthorAge
* GameUI refactor (part 4/X): Move Game::guitext_status, Game::m_statustext, Ga...Loic Blot2018-01-05
* GameUI refactor (part 3/X): Move Game::guitext2, Game::guitext_info, Game::in...Loic Blot2018-01-05
* GameUI refactor (part 2/X): Move Game::guitext to GameUI + enhancements on St...Loic Blot2018-01-05
* GameUI refactor (part 1/X): GameUI object creation + GameUIFlags move to GameUILoic Blot2018-01-05
* Add unittests on ActiveObject and BanManager class (#6866)Loïc Blot2018-01-01
* Move files to subdirectories (#6599)Vitaliy2017-11-08
* Add session_t typedef + remove unused functions (#6470)Loïc Blot2017-09-27
* Implement mod communication channels (#6351)Loïc Blot2017-09-26
* Remove DSTACK support (#6346)Loïc Blot2017-08-30
* Network proto handlers/container fixes (#6334)Loïc Blot2017-08-29
* Network cleanup (#6310)Loïc Blot2017-08-25
* Network cleanup (#6302)Loïc Blot2017-08-24
* Modernize source code: last part (#6285)Loïc Blot2017-08-20
* Code modernization: subfolders (#6283)Loïc Blot2017-08-19
* C++ modernize: Pragma once (#6264)Loïc Blot2017-08-17
* Cleanup various headers to reduce compilation times (#6255)Loïc Blot2017-08-16
* C++11 cleanup on constructors (#6000)Vincent Glize2017-06-19
* Revert "Remove deprecated code segments (#5891)"Loïc Blot2017-06-06
* C++11 patchset 3: remove Atomic/GenericAtomic and use std::atomic (#5906)Loïc Blot2017-06-06
* Remove deprecated code segments (#5891)Thomas--S2017-06-04
* Time: Change old `u32` timestamps to 64-bit (#5818)SmallJoker2017-05-26
* Clean up numeric.h and split FacePositionCache from itShadowNinja2017-05-06
* Fix Travis/unittest broken since b662a45SmallJoker2017-04-29
* Player data to Database (#5475)Loïc Blot2017-04-23
* Pass clang-format on various cpp/header files (#5559)Loïc Blot2017-04-23
* Add ModStorageAPI to client side modding (#5396)Loïc Blot2017-03-16
* [CSM] Client side moddingLoic Blot2017-03-13
* Fix synchronization issue at thread startShadowNinja2017-01-28
* Revert "Extend minetest.is_yes()"sfan52017-01-07
* Extend minetest.is_yes()red-0012017-01-07
* Improve getPointedThing() (#4346)Dániel Juhász2017-01-04
* Breath cheat fix: server sideLoic Blot2017-01-01
* Fix RemoveRelatvePathComponentsShadowNinja2016-12-20
* Fix filepath > RemoveRelativePathComponent unittestsfan52016-11-27
* Fix overloading problems mentioned by clangLoic Blot2016-10-30
* PlayerSAO/LocalPlayer refactor: (#4612)Ner'zhul2016-10-30
* Add unittests to test player saving/loading (#4679)Ner'zhul2016-10-27
* Travis: build matrix improvements + CPP11 buildLoic Blot2016-10-06
* Only include keycode unittests in client build (fixes #4559)sfan52016-09-29
* Add keycode.cpp unittestssfan52016-09-25
* couple of memory leaks fixes.David Carlier2016-08-10
* Mapgen: Remove unused 'flat' and 'trees' flags from mg_flagsparamat2016-08-04
* test_map_settings_manager: Fix Wunused-result warningest312016-08-04
* Temporarily disable "testStartStopWait" Threading unit test on macest312016-07-04
* Add MapSettingsManager and new mapgen setting script API functionskwolekr2016-07-03
* Escape more strings: formspecs, item descriptions, infotexts...Ekdohibs2016-04-24
* Implement AreaStore serializationShadowNinja2016-03-07
* Move AreaStore to utilShadowNinja2016-03-07
* Simplify AreaStore ID managementShadowNinja2016-03-07
* Don't pass non-const references to collision methodsest312016-01-29
l std::string getActor() = 0; virtual bool isActorGuess() = 0; virtual void setActor(const std::string &actor, bool is_guess) = 0; virtual std::string getSuspect(v3s16 p, float nearness_shortcut, float min_nearness) = 0; virtual ~IRollbackManager() = default;; virtual void flush() = 0; // Get all actors that did something to position p, but not further than // <seconds> in history virtual std::list<RollbackAction> getNodeActors(v3s16 pos, int range, time_t seconds, int limit) = 0; // Get actions to revert <seconds> of history made by <actor> virtual std::list<RollbackAction> getRevertActions(const std::string &actor, time_t seconds) = 0; }; class RollbackScopeActor { public: RollbackScopeActor(IRollbackManager * rollback_, const std::string & actor, bool is_guess = false) : rollback(rollback_) { if (rollback) { old_actor = rollback->getActor(); old_actor_guess = rollback->isActorGuess(); rollback->setActor(actor, is_guess); } } ~RollbackScopeActor() { if (rollback) { rollback->setActor(old_actor, old_actor_guess); } } private: IRollbackManager * rollback; std::string old_actor; bool old_actor_guess; };