1
0
cuberite-2a/src/Mobs
Mat 7d4934534e
Stabilise MoveToWorld (#4004)
* Stabilise MoveToWorld

* Fix comments and deprecate ScheduleMoveToWorld

* Enhanced thread safety for m_WorldChangeInfo

* Return unique_ptr from cAtomicUniquePtr::exchange

* cWorld now calls entity cEntity::OnAddToWorld and cEntity::OnRemoveFromWorld.

Allows broadcasting entities added to the world from the world's tick thread.
This also factors out some common code from cEntity::DoMoveToWorld and cEntity::Initialize.

As a consequence, cEntity::Destroy(false) (i.e. Destroying the entity without broadcasting) is impossible.
This isn't used anywhere in Cuberite so it's now deprecated.

* Update entity position after removing it from the world.
Fixes broadcasts being sent to the wrong chunk.

* Fix style

* cEntity: Update LastSentPosition when sending spawn packet

* Add Wno-deprecated-declarations to the lua bindings

* Kill uses of ScheduleMoveToWorld
2020-03-05 12:52:34 +02:00
..
AggressiveMonster.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
AggressiveMonster.h Spectators added (#2852) 2016-10-12 14:38:45 +02:00
Bat.cpp Remove double includes part 2 (#3890) 2017-08-03 15:34:19 +02:00
Bat.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Blaze.cpp Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
Blaze.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
CaveSpider.cpp Updated sounds and effect IDs (#3422) 2017-02-15 06:05:24 +01:00
CaveSpider.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Chicken.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
Chicken.h Ocelots don't take fall damage (#4171) 2018-02-04 20:53:35 +00:00
CMakeLists.txt Force all headers other than "Globals.h" to be included with relative paths (#4269) 2018-08-29 01:51:25 +01:00
Cow.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
Cow.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Creeper.cpp Prefer static_cast to reinterpret_cast (#4223) 2018-05-02 08:50:36 +01:00
Creeper.h 1.9 / 1.9.2 / 1.9.3 / 1.9.4 protocol support (#3135) 2016-05-14 20:12:42 +01:00
EnderDragon.cpp Updated sounds and effect IDs (#3422) 2017-02-15 06:05:24 +01:00
EnderDragon.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Enderman.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
Enderman.h Use clang-tidy to check more code conventions (#4214) 2018-05-06 18:07:34 +01:00
Ghast.cpp Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
Ghast.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Giant.cpp Updated sounds and effect IDs (#3422) 2017-02-15 06:05:24 +01:00
Giant.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Guardian.cpp Gives all entities the default airlevel on creation (#3942) 2017-08-25 14:44:36 +01:00
Guardian.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Horse.cpp Force all headers other than "Globals.h" to be included with relative paths (#4269) 2018-08-29 01:51:25 +01:00
Horse.h Force all headers other than "Globals.h" to be included with relative paths (#4269) 2018-08-29 01:51:25 +01:00
IncludeAllMonsters.h Added Rabbits 2014-12-20 10:31:34 +01:00
IronGolem.cpp Updated sounds and effect IDs (#3422) 2017-02-15 06:05:24 +01:00
IronGolem.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
MagmaCube.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
MagmaCube.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Monster.cpp Stabilise MoveToWorld (#4004) 2020-03-05 12:52:34 +02:00
Monster.h Stabilise MoveToWorld (#4004) 2020-03-05 12:52:34 +02:00
MonsterTypes.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Mooshroom.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
Mooshroom.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Ocelot.cpp Experience orb (#4259) 2018-08-02 15:59:10 +01:00
Ocelot.h Ocelots no longer multiply exponentially (#4272) 2018-07-30 12:49:46 +01:00
PassiveAggressiveMonster.cpp Spectators added (#2852) 2016-10-12 14:38:45 +02:00
PassiveAggressiveMonster.h Spectators added (#2852) 2016-10-12 14:38:45 +02:00
PassiveMonster.cpp Force all headers other than "Globals.h" to be included with relative paths (#4269) 2018-08-29 01:51:25 +01:00
PassiveMonster.h Proper entity destruction in non-ticking chunks 2016-02-19 07:05:22 +02:00
Path.cpp CheckBasicStyle: Check number of empty lines between functions (#4267) 2018-07-26 22:24:36 +01:00
Path.h FastRandom rewrite (#3754) 2017-06-13 21:35:30 +02:00
PathFinder.cpp Deal with covered switches consistently (#4161) 2018-02-04 23:07:12 +00:00
PathFinder.h Correct typo in documentation. 2016-02-05 16:45:55 +00:00
Pig.cpp Fixed some small passive mob issues (#4057) 2017-10-21 17:55:46 +01:00
Pig.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Rabbit.cpp Fixed some small passive mob issues (#4057) 2017-10-21 17:55:46 +01:00
Rabbit.h Fixed type-casting-related warnings. 2016-08-24 22:26:53 +02:00
Sheep.cpp Force all headers other than "Globals.h" to be included with relative paths (#4269) 2018-08-29 01:51:25 +01:00
Sheep.h Minor changes (#3909) 2017-08-24 11:19:40 +02:00
Silverfish.h Fixed some small passive mob issues (#4057) 2017-10-21 17:55:46 +01:00
Skeleton.cpp Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
Skeleton.h fix cavespider poisoning even if attack is in cooldown 2015-11-08 21:01:02 +01:00
Slime.cpp Fixed MSVC warnings (#4400) 2019-09-27 16:51:44 +01:00
Slime.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
SnowGolem.cpp Updated sounds and effect IDs (#3422) 2017-02-15 06:05:24 +01:00
SnowGolem.h snow golems are "neutral" 2015-12-13 13:13:37 +01:00
Spider.cpp Spider should attack only when the light level is lower than 11 (#3815) 2017-06-30 10:48:06 +02:00
Spider.h Spectators added (#2852) 2016-10-12 14:38:45 +02:00
Squid.cpp Rename cEntity swim states (#3996) 2018-01-14 18:44:45 +00:00
Squid.h SetSwimState now takes into account head height 2017-09-01 14:50:02 +01:00
Villager.cpp Refactored block-to-pickup conversion. (#4417) 2019-10-16 10:06:34 +02:00
Villager.h Force all headers other than "Globals.h" to be included with relative paths (#4269) 2018-08-29 01:51:25 +01:00
Witch.cpp Force all headers other than "Globals.h" to be included with relative paths (#4269) 2018-08-29 01:51:25 +01:00
Witch.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Wither.cpp Replace ItemCallbacks with lambdas (#3993) 2017-09-11 23:20:49 +02:00
Wither.h Changed entity ownership model to use smart pointers 2017-08-07 19:24:16 +01:00
Wolf.cpp Experience orb (#4259) 2018-08-02 15:59:10 +01:00
Wolf.h Add cUUID class (#3871) 2017-08-25 13:43:18 +01:00
Zombie.cpp Add BurnsInDaylight to Lua API and Monsters.ini (#4295) 2018-09-24 21:32:47 +01:00
Zombie.h AI - Better daylight handling 2015-05-02 14:32:33 +03:00
ZombiePigman.cpp Force all headers other than "Globals.h" to be included with relative paths (#4269) 2018-08-29 01:51:25 +01:00
ZombiePigman.h Fixed cactus detection and zombie pigman sword (#3584) 2017-02-25 19:14:08 +01:00