1
0
cuberite-2a/src/Entities
peterbell10 a4dbb5c582
Prefer static_cast to reinterpret_cast (#4223)
* Change reinterpret_cast -> static_cast wherever possible
* Remove more unnecessary `const_cast`s.

reinterpret_casts should be avoided for the same reason as c-style casts - they don't do any type-checking. reinterpret_cast was mainly being used for down-casting in inheritance hierarchies but static_cast works just as well while also making sure that there is actually an inheritance relationship there.
2018-05-02 08:50:36 +01:00
..
ArrowEntity.cpp Deal with covered switches consistently (#4161) 2018-02-04 23:07:12 +00:00
ArrowEntity.h Changed some int parameters to vector parameters (#3937) 2017-09-07 10:25:34 +02:00
Boat.cpp Deal with covered switches consistently (#4161) 2018-02-04 23:07:12 +00:00
Boat.h Changed some int parameters to vector parameters (#3937) 2017-09-07 10:25:34 +02:00
CMakeLists.txt Add the fmt library (#4065) 2018-01-03 17:41:16 +00:00
EnderCrystal.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
EnderCrystal.h Initial convertion of a_Dt to std::chrono 2015-01-11 21:12:26 +00:00
Entity.cpp Prefer static_cast to reinterpret_cast (#4223) 2018-05-02 08:50:36 +01:00
Entity.h Update m_LastSentPosition in TeleportToCoords and DoMoveToWorld. (#4211) 2018-04-11 08:39:24 +01:00
EntityEffect.cpp Prefer static_cast to reinterpret_cast (#4223) 2018-05-02 08:50:36 +01:00
EntityEffect.h Implement invisibility effect 2017-08-03 15:34:38 +02:00
ExpBottleEntity.cpp Changed some int parameters to vector parameters (#3937) 2017-09-07 10:25:34 +02:00
ExpBottleEntity.h Changed some int parameters to vector parameters (#3937) 2017-09-07 10:25:34 +02:00
ExpOrb.cpp Exp Orbs and Pickups are destroyed instantly by cacti. (#4136) 2018-01-16 19:13:17 +00:00
ExpOrb.h Exp Orbs and Pickups are destroyed instantly by cacti. (#4136) 2018-01-16 19:13:17 +00:00
FallingBlock.cpp Concrete mixing (#4096) 2018-01-03 16:33:31 +00:00
FallingBlock.h Removed unused forward declarations (#3888) 2017-08-03 15:10:29 +02:00
FireChargeEntity.cpp Changed some int parameters to vector parameters (#3937) 2017-09-07 10:25:34 +02:00
FireChargeEntity.h Changed some int parameters to vector parameters (#3937) 2017-09-07 10:25:34 +02:00
FireworkEntity.cpp Entities now bail out of ticks if destroyed (#3363) 2016-09-03 14:31:27 +03:00
FireworkEntity.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Floater.cpp Fix fishing timer (#4217) 2018-04-27 16:33:45 +01:00
Floater.h Changed fish launching mechanism (#3520) 2017-02-20 10:03:19 +01:00
GhastFireballEntity.cpp Changed some int parameters to vector parameters (#3937) 2017-09-07 10:25:34 +02:00
GhastFireballEntity.h Changed some int parameters to vector parameters (#3937) 2017-09-07 10:25:34 +02:00
HangingEntity.cpp cPainting saving implemented 2015-03-13 23:05:06 +00:00
HangingEntity.h Deal with covered switches consistently (#4161) 2018-02-04 23:07:12 +00:00
ItemFrame.cpp Made -Weverything an error. 2015-05-24 12:56:56 +01:00
ItemFrame.h Unified cPacketizer across all protocols. 2015-03-22 19:46:08 +01:00
LeashKnot.cpp Changed BroadcastSoundEffect, SendSoundEffect, and CastThunderbolt parameters to vectors (#3959) 2017-09-19 15:12:54 +01:00
LeashKnot.h Fully implemented leashes (#3798) 2017-08-21 10:46:41 +02:00
Minecart.cpp Store Health as a float (#4073) 2017-11-22 13:47:52 +00:00
Minecart.h Fix minecart deceleration (#4059) 2017-10-21 17:53:24 +01:00
Painting.cpp Made -Weverything an error. 2015-05-24 12:56:56 +01:00
Painting.h cPainting saving implemented 2015-03-13 23:05:06 +00:00
Pawn.cpp Rename cEntity swim states (#3996) 2018-01-14 18:44:45 +00:00
Pawn.h Implement invisibility effect 2017-08-03 15:34:38 +02:00
Pickup.cpp Exp Orbs and Pickups are destroyed instantly by cacti. (#4136) 2018-01-16 19:13:17 +00:00
Pickup.h Exp Orbs and Pickups are destroyed instantly by cacti. (#4136) 2018-01-16 19:13:17 +00:00
Player.cpp Prefer static_cast to reinterpret_cast (#4223) 2018-05-02 08:50:36 +01:00
Player.h Item durability loss now depends on the item used. (#4123) 2018-01-05 11:28:06 +00:00
ProjectileEntity.cpp Deal with covered switches consistently (#4161) 2018-02-04 23:07:12 +00:00
ProjectileEntity.h Changed some int parameters to vector parameters (#3937) 2017-09-07 10:25:34 +02:00
SplashPotionEntity.cpp Replace ItemCallbacks with lambdas (#3993) 2017-09-11 23:20:49 +02:00
SplashPotionEntity.h Updated APIDoc (#3985) 2017-09-07 10:33:46 +02:00
ThrownEggEntity.cpp Changed some int parameters to vector parameters (#3937) 2017-09-07 10:25:34 +02:00
ThrownEggEntity.h Changed some int parameters to vector parameters (#3937) 2017-09-07 10:25:34 +02:00
ThrownEnderPearlEntity.cpp Replace ItemCallbacks with lambdas (#3993) 2017-09-11 23:20:49 +02:00
ThrownEnderPearlEntity.h Changed some int parameters to vector parameters (#3937) 2017-09-07 10:25:34 +02:00
ThrownSnowballEntity.cpp Changed some int parameters to vector parameters (#3937) 2017-09-07 10:25:34 +02:00
ThrownSnowballEntity.h Changed some int parameters to vector parameters (#3937) 2017-09-07 10:25:34 +02:00
TNTEntity.cpp Changed some int parameters to vector parameters (#3937) 2017-09-07 10:25:34 +02:00
TNTEntity.h Changed some int parameters to vector parameters (#3937) 2017-09-07 10:25:34 +02:00
WitherSkullEntity.cpp Changed some int parameters to vector parameters (#3937) 2017-09-07 10:25:34 +02:00
WitherSkullEntity.h Changed some int parameters to vector parameters (#3937) 2017-09-07 10:25:34 +02:00