1
0
Fork 0
cuberite-2a/src/Mobs
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
..
AggressiveMonster.cpp Monsters: improve targeting 2020-12-21 13:52:23 +00:00
AggressiveMonster.h Using Super. 2020-04-16 20:07:48 +00:00
Bat.cpp Using Super. 2020-04-16 20:07:48 +00:00
Bat.h Using Super. 2020-04-16 20:07:48 +00:00
Blaze.cpp Replaced cpp14::make_unique<> with std::make_unique<>. 2020-08-01 20:04:31 +01:00
Blaze.h Using Super. 2020-04-16 20:07:48 +00:00
CMakeLists.txt Adding Silverfish Spawning Blocks (#4946) 2020-10-11 15:27:41 +00:00
CaveSpider.cpp Using Super. 2020-04-16 20:07:48 +00:00
CaveSpider.h Using Super. 2020-04-16 20:07:48 +00:00
Chicken.cpp Using Super. 2020-04-16 20:07:48 +00:00
Chicken.h Using Super. 2020-04-16 20:07:48 +00:00
Cow.cpp Using Super. 2020-04-16 20:07:48 +00:00
Cow.h Using Super. 2020-04-16 20:07:48 +00:00
Creeper.cpp Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
Creeper.h Using Super. 2020-04-16 20:07:48 +00:00
EnderDragon.cpp Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
EnderDragon.h Using Super. 2020-04-16 20:07:48 +00:00
Enderman.cpp Convert most calls to blocking GetHeight/GetBiomeAt to direct chunk accesses 2021-01-11 16:39:56 +00:00
Enderman.h Improve Enderman targeting 2020-12-21 13:52:23 +00:00
Ghast.cpp Replaced cpp14::make_unique<> with std::make_unique<>. 2020-08-01 20:04:31 +01:00
Ghast.h Using Super. 2020-04-16 20:07:48 +00:00
Giant.cpp Using Super. 2020-04-16 20:07:48 +00:00
Giant.h Using Super. 2020-04-16 20:07:48 +00:00
Guardian.cpp Using Super. 2020-04-16 20:07:48 +00:00
Guardian.h Using Super. 2020-04-16 20:07:48 +00:00
Horse.cpp Fix potential destruction crashes (#5095) 2021-01-02 13:50:34 +00:00
Horse.h Fix potential destruction crashes (#5095) 2021-01-02 13:50:34 +00:00
IncludeAllMonsters.h Add Zombie Villagers 2020-04-10 00:50:45 +01:00
IronGolem.cpp Using Super. 2020-04-16 20:07:48 +00:00
IronGolem.h Using Super. 2020-04-16 20:07:48 +00:00
MagmaCube.cpp Using Super. 2020-04-16 20:07:48 +00:00
MagmaCube.h Using Super. 2020-04-16 20:07:48 +00:00
Monster.cpp Clarify cClientHandle, cPlayer ownership semantics 2021-01-12 12:34:34 +00:00
Monster.h Clarify cClientHandle, cPlayer ownership semantics 2021-01-12 12:34:34 +00:00
MonsterTypes.h Adding new monster types to enum and saving/loading for easier future implementation (#4941) 2020-11-22 23:41:13 +00:00
Mooshroom.cpp Using Super. 2020-04-16 20:07:48 +00:00
Mooshroom.h Using Super. 2020-04-16 20:07:48 +00:00
Ocelot.cpp Using Super. 2020-04-16 20:07:48 +00:00
Ocelot.h Using Super. 2020-04-16 20:07:48 +00:00
PassiveAggressiveMonster.cpp Monsters: improve targeting 2020-12-21 13:52:23 +00:00
PassiveAggressiveMonster.h Using Super. 2020-04-16 20:07:48 +00:00
PassiveMonster.cpp Fix potential destruction crashes (#5095) 2021-01-02 13:50:34 +00:00
PassiveMonster.h Fix potential destruction crashes (#5095) 2021-01-02 13:50:34 +00:00
Path.cpp Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
Path.h Deleted BiomeDef.h and ChunkDef.h from Globals.h (#4885) 2020-09-25 09:13:59 +00:00
PathFinder.cpp Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
PathFinder.h Correct typo in documentation. 2016-02-05 16:45:55 +00:00
Pig.cpp Using Super. 2020-04-16 20:07:48 +00:00
Pig.h Using Super. 2020-04-16 20:07:48 +00:00
Rabbit.cpp Using Super. 2020-04-16 20:07:48 +00:00
Rabbit.h Using Super. 2020-04-16 20:07:48 +00:00
Sheep.cpp Adding wolf breading and moving breeding functionality to cMonster (#4951) 2020-10-09 20:49:25 +00:00
Sheep.h Adding wolf breading and moving breeding functionality to cMonster (#4951) 2020-10-09 20:49:25 +00:00
Silverfish.cpp Silverfish: correct search cube 2020-12-26 16:58:53 +00:00
Silverfish.h Improve Silverfish search 2020-12-21 13:52:06 +00:00
Skeleton.cpp Replaced cpp14::make_unique<> with std::make_unique<>. 2020-08-01 20:04:31 +01:00
Skeleton.h Using Super. 2020-04-16 20:07:48 +00:00
Slime.cpp Replaced cpp14::make_unique<> with std::make_unique<>. 2020-08-01 20:04:31 +01:00
Slime.h Using Super. 2020-04-16 20:07:48 +00:00
SnowGolem.cpp Convert most calls to blocking GetHeight/GetBiomeAt to direct chunk accesses 2021-01-11 16:39:56 +00:00
SnowGolem.h Using Super. 2020-04-16 20:07:48 +00:00
Spider.cpp Monsters: improve targeting 2020-12-21 13:52:23 +00:00
Spider.h Using Super. 2020-04-16 20:07:48 +00:00
Squid.cpp Using Super. 2020-04-16 20:07:48 +00:00
Squid.h Using Super. 2020-04-16 20:07:48 +00:00
Villager.cpp Using Super. 2020-04-16 20:07:48 +00:00
Villager.h Using Super. 2020-04-16 20:07:48 +00:00
Witch.cpp Using Super. 2020-04-16 20:07:48 +00:00
Witch.h Using Super. 2020-04-16 20:07:48 +00:00
Wither.cpp Add Statistics and Achievements for newer Network standards 2020-08-19 20:45:27 +01:00
Wither.h Using Super. 2020-04-16 20:07:48 +00:00
WitherSkeleton.cpp Using Super. 2020-04-16 20:07:48 +00:00
WitherSkeleton.h Using Super. 2020-04-16 20:07:48 +00:00
Wolf.cpp Adding wolf breading and moving breeding functionality to cMonster (#4951) 2020-10-09 20:49:25 +00:00
Wolf.h Adding wolf breading and moving breeding functionality to cMonster (#4951) 2020-10-09 20:49:25 +00:00
Zombie.cpp Using Super. 2020-04-16 20:07:48 +00:00
Zombie.h Using Super. 2020-04-16 20:07:48 +00:00
ZombiePigman.cpp Using Super. 2020-04-16 20:07:48 +00:00
ZombiePigman.h Using Super. 2020-04-16 20:07:48 +00:00
ZombieVillager.cpp Using Super. 2020-04-16 20:07:48 +00:00
ZombieVillager.h Using Super. 2020-04-16 20:07:48 +00:00