1
0
Fork 0
cuberite-2a/src/Entities
Tiger Wang 054a89dd9e Clarify cClientHandle, cPlayer ownership semantics
+ A cPlayer, once created, has a strong pointer to the cClientHandle. The player ticks the clienthandle. If he finds the handle destroyed, he destroys himself in turn. Nothing else can kill the player.
* The client handle has a pointer to the player. Once a player is created, the client handle never outlasts the player, nor does it manage the player's lifetime. The pointer is always safe to use after FinishAuthenticate, which is also the point where cProtocol is put into the Game state that allows player manipulation.
+ Entities are once again never lost by constructing a chunk when they try to move into one that doesn't exist.
* Fixed a forgotten Super invocation in cPlayer::OnRemoveFromWorld.
* Fix SaveToDisk usage in destructor by only saving things cPlayer owns, instead of accessing cWorld.
2021-01-12 12:34:34 +00:00
..
ArrowEntity.cpp Fix arrows preventing block placement 2020-08-09 10:19:01 +00:00
ArrowEntity.h Fix arrows preventing block placement 2020-08-09 10:19:01 +00:00
Boat.cpp Initial work on 1.13 entity metadata (#4539) 2020-07-17 19:33:02 +01:00
Boat.h Using Super. 2020-04-16 20:07:48 +00:00
CMakeLists.txt Upgrade to C++17 [CMake] (#4717) 2020-05-16 20:59:10 +01:00
EnderCrystal.cpp Ender Crytal Fix and report proper cmake file for luabindingscheck fail (#5017) 2020-11-06 15:00:59 +00:00
EnderCrystal.h Ender Crytal Fix and report proper cmake file for luabindingscheck fail (#5017) 2020-11-06 15:00:59 +00:00
Entity.cpp Clarify cClientHandle, cPlayer ownership semantics 2021-01-12 12:34:34 +00:00
Entity.h Clarify cClientHandle, cPlayer ownership semantics 2021-01-12 12:34:34 +00:00
EntityEffect.cpp Replaced cpp14::make_unique<> with std::make_unique<>. 2020-08-01 20:04:31 +01:00
EntityEffect.h Fix potential destruction crashes (#5095) 2021-01-02 13:50:34 +00:00
ExpBottleEntity.cpp Using Super. 2020-04-16 20:07:48 +00:00
ExpBottleEntity.h Using Super. 2020-04-16 20:07:48 +00:00
ExpOrb.cpp Using Super. 2020-04-16 20:07:48 +00:00
ExpOrb.h Using Super. 2020-04-16 20:07:48 +00:00
FallingBlock.cpp Unify entity spawn packet sending 2020-04-30 23:04:56 +01:00
FallingBlock.h Using Super. 2020-04-16 20:07:48 +00:00
FireChargeEntity.cpp Using Super. 2020-04-16 20:07:48 +00:00
FireChargeEntity.h Using Super. 2020-04-16 20:07:48 +00:00
FireworkEntity.cpp Using Super. 2020-04-16 20:07:48 +00:00
FireworkEntity.h Using Super. 2020-04-16 20:07:48 +00:00
Floater.cpp Convert most calls to blocking GetHeight/GetBiomeAt to direct chunk accesses 2021-01-11 16:39:56 +00:00
Floater.h Using Super. 2020-04-16 20:07:48 +00:00
GhastFireballEntity.cpp Using Super. 2020-04-16 20:07:48 +00:00
GhastFireballEntity.h Using Super. 2020-04-16 20:07:48 +00:00
HangingEntity.cpp Using Super. 2020-04-16 20:07:48 +00:00
HangingEntity.h Using Super. 2020-04-16 20:07:48 +00:00
ItemFrame.cpp Unify entity spawn packet sending 2020-04-30 23:04:56 +01:00
ItemFrame.h Using Super. 2020-04-16 20:07:48 +00:00
LeashKnot.cpp Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
LeashKnot.h Using Super. 2020-04-16 20:07:48 +00:00
Minecart.cpp Fix potential destruction crashes (#5095) 2021-01-02 13:50:34 +00:00
Minecart.h Fix potential destruction crashes (#5095) 2021-01-02 13:50:34 +00:00
Painting.cpp Using Super. 2020-04-16 20:07:48 +00:00
Painting.h Using Super. 2020-04-16 20:07:48 +00:00
Pawn.cpp Fix potential destruction crashes (#5095) 2021-01-02 13:50:34 +00:00
Pawn.h Fix potential destruction crashes (#5095) 2021-01-02 13:50:34 +00:00
Pickup.cpp Add Statistics and Achievements for newer Network standards 2020-08-19 20:45:27 +01:00
Pickup.h Using Super. 2020-04-16 20:07:48 +00:00
Player.cpp Clarify cClientHandle, cPlayer ownership semantics 2021-01-12 12:34:34 +00:00
Player.h Clarify cClientHandle, cPlayer ownership semantics 2021-01-12 12:34:34 +00:00
ProjectileEntity.cpp Ender Crytal Fix and report proper cmake file for luabindingscheck fail (#5017) 2020-11-06 15:00:59 +00:00
ProjectileEntity.h Unify entity spawn packet sending 2020-04-30 23:04:56 +01:00
SplashPotionEntity.cpp Unify entity spawn packet sending 2020-04-30 23:04:56 +01:00
SplashPotionEntity.h Unify entity spawn packet sending 2020-04-30 23:04:56 +01:00
TNTEntity.cpp Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
TNTEntity.h Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
ThrownEggEntity.cpp Using Super. 2020-04-16 20:07:48 +00:00
ThrownEggEntity.h Using Super. 2020-04-16 20:07:48 +00:00
ThrownEnderPearlEntity.cpp Using Super. 2020-04-16 20:07:48 +00:00
ThrownEnderPearlEntity.h Using Super. 2020-04-16 20:07:48 +00:00
ThrownSnowballEntity.cpp Using Super. 2020-04-16 20:07:48 +00:00
ThrownSnowballEntity.h Using Super. 2020-04-16 20:07:48 +00:00
WitherSkullEntity.cpp Using Super. 2020-04-16 20:07:48 +00:00
WitherSkullEntity.h Using Super. 2020-04-16 20:07:48 +00:00