summaryrefslogtreecommitdiffstats
path: root/src/Entities/Entity.h (unfollow)
Commit message (Expand)AuthorFilesLines
2019-08-08Change TakeDamageInfo::FinalDamage from int to float (#4359)Aplaus2281-2/+2
2018-07-24Broadcast refactor (#4264)peterbell101-1/+2
2018-07-23cPawn: Reset last ground height in ResetPosition (#4261)peterbell101-1/+1
2018-07-23Rewrite explosion knock back (#4251)changyong guo1-1/+10
2018-06-24Support swap item between main hand and offhand by press key "F" (#4241)changyong guo1-0/+3
2018-04-11Update m_LastSentPosition in TeleportToCoords and DoMoveToWorld. (#4211)peterbell101-0/+4
2018-01-14Rename cEntity swim states (#3996)Alexander Harkness1-11/+23
2017-11-22Store Health as a float (#4073)Fabian1-6/+6
2017-09-12Adjust lava damage values (#4020)Alexander Harkness1-1/+1
2017-09-07Updated APIDoc (#3985)Lukas Pioch1-3/+4
2017-09-07Changed some int parameters to vector parameters (#3937)Bond-0091-1/+1
2017-08-30Protocol Spawn Position Should Use LastSentPosition (#3929)Lane Kolbly1-0/+4
2017-08-30Added ShouldSendRespawn parameter to ScheduleMoveToWorld (#3979)Lane Kolbly1-1/+2
2017-08-24Minor changes (#3909)mathiascode1-1/+1
2017-08-21Fully implemented leashes (#3798)Pablo Beltrán1-1/+19
2017-08-07Changed entity ownership model to use smart pointersTiger Wang1-3/+1
2017-08-03Remove double includes part 2 (#3890)peterbell101-1/+0
2017-07-28Check for intersection between placed blocks and entities. (#3850)Lane Kolbly1-0/+3
2017-07-23Updated armor cover calculation. (#3858)Lane Kolbly1-2/+8
2017-06-15Entity: Replaced a mutexed counter with a std::atomic. (#3773)Mattes D1-4/+6
2017-04-01Added a nullptr check to cEntity::IsA (#3659)Marvin Kopf1-1/+1
2016-12-10Export GetPosition and GetSpeed from cEntity as a copy instead of a pointer to lua.Lukas Pioch1-2/+6
2016-10-12Spectators added (#2852)bibo381-1/+1
2016-07-18Updated API documentation.Mattes D1-3/+7
2016-07-18Fixes for boat entities (#3265)beeduck1-0/+3
2016-06-02Fixed fall damageTiger Wang1-1/+1
2016-05-03Fixed death on teleportation or leaving Minecart (#3181)LogicParrot1-1/+1
2016-03-30MoveToWorld defaults to spawnpointLogicParrot1-2/+2
2016-02-19Proper entity destruction in non-ticking chunksLogicParrot1-16/+29
2016-02-02Fix cPawn pushingMarvin Kopf1-0/+3
2016-01-22Improved tamed wolf pack cooperation and projectile reactionsLogicParrot1-0/+3
2016-01-21Spiders now friendly at daylight, new cChunk functionsLogicParrot1-1/+0
2015-11-29implement breedingGargaj1-0/+2
2015-11-05Destroy an ender crystal, damage a dragon when hit by an egg.Alexander Harkness1-88/+88
2015-10-31Implemented the FireResistence potion effects.bibo381-1/+1
2015-08-20Fixed food drain bugsTiger Wang1-22/+22
2015-07-31Unified the doxy-comment format.Mattes D1-66/+65
2015-06-13Work on NetherPortalScanner. Setup portal scanner to reset PortalCooldown. Changed where player is spawned. Added a_InitSpawn flag to CreateAndInitializeWorld.Lane Kolbly1-11/+12
2015-06-10Implemented nether portal scanning code.Lane Kolbly1-8/+18
2015-05-24Made -Weverything an error.tycho1-2/+2
2015-05-09More style checking.Mattes D1-2/+2
2015-03-31Changed air drag units to 'interpolated ticks' per secondDevToaster1-2/+4
2015-03-31Modified physics for more vanilla-like behaviorDevToaster1-0/+8
2015-03-21Changed cEntity::m_UniqueID to UInt32.Mattes D1-3/+10
2015-02-07cPlayer should override IsOnGround()Howaner1-2/+2
2015-02-07Added IsOnGround() to cEntityHowaner1-0/+3
2015-01-11Initial convertion of a_Dt to std::chronoTycho1-2/+2
2014-10-23En masse NULL -> nullptr replaceTiger Wang1-96/+100
2014-10-20En masse NULL -> nullptr replaceTiger Wang1-7/+7
2014-10-19LuaState: Pushing a cEntity pushes the correct class name.Mattes D1-5/+5
2014-10-12convert old style casts to fix warningsSteven Riehl1-94/+90
2014-10-09Float/Ciel: If it's going to use C++11, it might as well take advantage of itarchshift1-3/+3
2014-10-09Use static casts instead of C casts, add floor-cast functionsarchshift1-3/+3
2014-09-13Entities experience water resistanceTiger Wang1-0/+6
2014-09-04Revert "Globals.h: Added Floor and Ciel casting, C++ cast cleanups, etc"archshift1-3/+3
2014-09-04Globals.h: Added Floor and Ciel casting, C++ cast cleanups, etcarchshift1-3/+3
2014-09-01Added name tagHowaner1-1/+1
2014-07-30Entity.h: Moved constants out of some unnamed enumarchshift1-14/+14
2014-07-24Removed redundant semicolons and re-added warningarchshift1-1/+1
2014-07-23SuggestionsTiger Wang1-3/+5
2014-07-22Speed improvements, crash fixes, & self-suggestionsTiger Wang1-2/+4
2014-07-21SuggestionsTiger Wang1-9/+21
2014-07-20Bug and crash fixesTiger Wang1-6/+9
2014-07-20Added m_TicksAlive to entities, allows projectiles to hit their creatorsarchshift1-0/+6
2014-07-17Fixed tabs used for alignment.madmaxoft1-1/+1
2014-07-17Basic style fixes.madmaxoft1-1/+1
2014-07-17Normalized comments.madmaxoft1-1/+1
2014-07-04Tailored death messagesTiger Wang1-1/+1
2014-06-22Some Entity.cpp style improvementsTiger Wang1-2/+2
2014-06-21Fixed invalid iteratorsTiger Wang1-1/+9
2014-06-17Cave spider now poisons its victim, added IsPawn function to Entityarchshift1-0/+1
2014-06-17Player: made healing instantaneousarchshift1-1/+1
2014-06-16Merge branch 'master' of github.com:mc-server/MCServerTycho1-10/+25
2014-06-16Implemented PR suggestionsarchshift1-1/+1
2014-06-14Removed an unused tolua_end and tolua_begin pair.madmaxoft1-2/+0
2014-06-14Refactored speed-setting to use a common function for all cases.madmaxoft1-16/+23
2014-06-14Reverted portal creation codeTiger Wang1-3/+0
2014-06-12Portals animate and delay correctlyTiger Wang1-2/+8
2014-06-11Player.h: Moved doxy-comments to Entity.harchshift1-0/+7
2014-06-10Portal improvements and suggestionsTiger Wang1-0/+3
2014-06-08Fixed deadlock when moving players to other worlds.Mattes D1-2/+3
2014-06-08Added queue for adding entities to cWorld.Mattes D1-2/+3
2014-05-31Implemented end and nether portalsTiger Wang1-0/+6
2014-05-22cEntity::SetSpeed(a_Vector3d) isn't virtualized anymoreSTRWarrior1-1/+1
2014-05-22cPlayer overrides the SetSpeedXX functionsSTRWarrior1-3/+3
2014-05-22Both SetSpeed functions are now overridden by cPlayerSTRWarrior1-5/+8
2014-05-18Implemented cacti damageTiger Wang1-0/+3
2014-05-12cEntity::Killed(cEntity *) Handler; Achievement triggers; cPlayer::AwardAchievement()andrew1-0/+3
2014-05-02A bit of reformatting.madmaxoft1-5/+10
2014-04-27More comments!Tiger Wang1-2/+9
2014-04-26Further refactored, Reverted Minecart changearchshift1-1/+1
2014-04-26FixesHowaner1-10/+13
2014-04-26Moved switch{} out of GetArmorCoverAgainst().archshift1-0/+3
2014-04-26Change m_InvulnerableTicks description again again :DHowaner1-1/+1
2014-04-26Change m_InvulnerableTicks description again.Howaner1-1/+1
2014-04-26Change m_InvulnerableTicks descriptionHowaner1-1/+1
2014-04-26Add entity invulnerableHowaner1-4/+13
2014-04-23Some change to Entity.cppTiger Wang1-7/+4
2014-04-23Renamed getter and setter for IsFireproof.archshift1-2/+2
2014-04-23Fireproof status getter and setter.archshift1-0/+5
2014-04-22Fixed indentation and changed m_Fireproof to m_IsFireproof.archshift1-2/+2
2014-04-22Lay foundation for fireproof entities.archshift1-0/+3
2014-04-17Added new AI rulesTiger Wang1-1/+2
2014-04-12Entities handle chunks properly againTiger Wang1-15/+36
2014-04-03Documented the units and range for entity rotations.madmaxoft1-7/+7
2014-03-25Ender crystalsandrew1-11/+13
2014-03-11Unified Vector classesandrew1-3/+1
2014-03-05Added extra awesomeness to TNTTiger Wang1-0/+1
2014-02-18Implemented paintings, fixes #689Tiger Wang1-0/+2
2014-02-18Implemented item frames, a part of #689Tiger Wang1-0/+2
2014-02-03Fixed compilationtonibm191-1/+0
2014-02-03Exporded World:FindClosestPlayer, Item:IsEnchantable and Monster:MoveToPosition to Lua APItonibm191-0/+1
2014-01-25Implemented fall damage for mobsTiger Wang1-0/+5
2014-01-25All mobs now drown (fixes #54)Tiger Wang1-1/+22
2014-01-24Removed unused ReferenceManagerTiger Wang1-9/+1
2014-01-17Removed internal cEntity::GetRot() usage.madmaxoft1-2/+2
2014-01-16Removed obsoleted functionsTiger Wang1-3/+1
2014-01-15OBSOLETE'd obsolete functionsTiger Wang1-2/+2
2014-01-13Detaching improvementsTiger Wang1-1/+1
2013-12-30Fixed compilation in VC2008.madmaxoft1-2/+4
2013-12-22merged in warnings changesTycho Bickerstaff1-4/+10
2013-12-22converted commneted paramater names to the unused macroTycho Bickerstaff1-3/+7
2013-12-21ChunkSender is now warnings cleanTycho Bickerstaff1-4/+4
2013-12-20Sorted a few constructors to remove warnings.madmaxoft1-1/+1
2013-12-19Added cFloater class.STRWarrior1-0/+3
2013-12-16Added HandleSpeedFromAttachee so an entity can override the function.STRWarrior1-0/+1
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-11-03Added cEntity:GetYaw() and cEntity:SetYaw().madmaxoft1-2/+4
2013-10-13Eight round of fixesTiger Wang1-13/+8
2013-10-09Second round of fixesTiger Wang1-66/+1
2013-10-08Initial round of fixesTiger Wang1-17/+27
2013-10-08Initial Metadata Commit [SEE DESC]Tiger Wang1-0/+63
2013-10-08Cleaned up cEntity's enums.madmaxoft1-23/+20
2013-09-27Fixed a typo in cEntity doxycomments.madmaxoft1-4/+4
2013-09-11Added void damageTiger Wang1-0/+6
2013-09-08Fixed a bunch of stuffTiger Wang1-0/+2
2013-09-07Arrows have proper yaw and pitch when shot, and stop when they hit a block.madmaxoft1-0/+6
2013-09-06Implemented SteerVehicle packet.madmaxoft1-0/+2
2013-09-06Implemented SteerVehicle packet.madmaxoft1-0/+2
2013-09-03Added cEntity's gravity to the Lua API.madmaxoft1-0/+4
2013-08-29Implemented xoft's suggestions [SEE DESC]Tiger Wang1-3/+3
2013-08-27Preliminary Minecart physics handling [SEE DESC]Tiger Wang1-3/+3
2013-08-27Entities fall 3x slower in watermadmaxoft1-1/+1
2013-08-22Added skeleton code for projectile spawning.madmaxoft1-3/+3
2013-08-22Removed unwanted VirtualHooks remnants.madmaxoft1-2/+1
2013-08-19Moved entities into the Entities subfolder.madmaxoft1-3/+3
2013-08-08Addeed OnSpawningEntity, OnSpawnedEntity, OnSpawningMonster, OnSpawnedMonster hooks.madmaxoft1-1/+2
2013-07-07Mobs are assigned MaxHealth from monsters.ini; reading monsters.ini doesn't need settings.ini values anymore.madmaxoft@gmail.com1-1/+4
2013-07-01Added DamageType translation to APImadmaxoft@gmail.com1-42/+0
2013-07-01Rewritten entity-on-fire management ("forever on fire" bugs)madmaxoft@gmail.com1-15/+189
2013-06-25Unified the way mobs are spawned (egg vs natural). Fixed deadlocks in mob moving. Fixed mob destroying code.madmaxoft@gmail.com1-1/+2
2013-06-15Entity: Added IsTNTnielsbreu@gmail.com1-0/+1
2013-06-04cEntity: fixed doxy commentsmadmaxoft@gmail.com1-4/+4
2013-05-21Added basic functions for width and height for Entitieskeyboard.osh@gmail.com1-11/+19
2013-05-19Fixed entity chunking.madmaxoft@gmail.com1-2/+2
2013-04-28Entity: fixed mass declarationmadmaxoft@gmail.com1-1/+1
2013-04-28cEntity: Added mass to entities.keyboard.osh@gmail.com1-0/+9
2013-04-22Moved physics to the cEntity class from the derivative classes (cMonster, cPickup). Added physics override to cPlayer to disable physics calculations. Fixed bug with pitch calculations on mobs.keyboard.osh@gmail.com1-1/+5
2013-04-18Initial implementation of explosions and TNT blockkeyboard.osh@gmail.com1-0/+1
2013-04-13Rewritten entities so that they are owned by individual chunks and ticked within their chunk's Tick()madmaxoft@gmail.com1-21/+15
2013-04-02Added support for head yaw tracking and packet sending and fixed bug in BroadcastMovementUpdatekeyboard.osh@gmail.com1-0/+7
2013-03-23Added helper functions AddSpeed, AddSpeedX, AddSpeedY, AddSpeedZ, AddPosition, AddPosX, AddPosY, AddPosZ. Made sure that all entites use these helper functions.keyboard.osh@gmail.com1-1/+10
2013-03-22Implemented BroadcastMovementUpdate function. Moved m_Pos,m_Rot,m_Speed to private members and made sure that all classes uses the public functions to access these members.keyboard.osh@gmail.com1-7/+25
2013-03-09Pickups are now being saved into Anvil.madmaxoft@gmail.com1-23/+27
2013-03-03Player can sit in minecarts (but not move them yet)madmaxoft@gmail.com1-2/+20
2013-03-01Previous commit was missing the Entity.h filemadmaxoft@gmail.com1-4/+8
2013-02-27Minecart entity now supports IsA() self-identificationmadmaxoft@gmail.com1-4/+5
2013-02-21Moved the Speed member into cEntity class instead of its descendants.madmaxoft@gmail.com1-2/+12
2013-02-18Minecarts can now be placed.madmaxoft@gmail.com1-0/+1
2013-02-10Removed useless logging from cEntity::GetLookVector()madmaxoft@gmail.com1-9/+9
2013-02-03Added a GetClassStatic function to all entities, as well as cFurnaceEntity, cChestEntity and cWorldfaketruth1-25/+7
2013-01-12Merged branch "branches/hooks" into "trunk".madmaxoft@gmail.com1-4/+4
2012-12-22MTRand reference is now passed as a Tick() parameter so that it isn't created and destroyed over and over again. All entities will handle physics (empty callback for now)madmaxoft@gmail.com1-1/+3
2012-12-21Added more constants into eEntityType; made them a compulsory parameter to the constructor, so that all entities have proper type.madmaxoft@gmail.com1-9/+21
2012-12-21Reworked the IsA() / GetClass() framework to actually be useful. Added GetParentClass().madmaxoft@gmail.com1-17/+39
2012-12-21Replaced "const double &" with plain "double" for simplicitymadmaxoft@gmail.com1-26/+26
2012-09-24Source files cleanup: The rest of the files renamed.madmaxoft@gmail.com1-0/+0
2012-08-29Gotten completely rid of all cPackets. The cProtocol125 class now does all the parsing and writing by itself.madmaxoft@gmail.com1-1/+0
2012-08-28Moved all packet-serializing code into cProtocol125; half the packet classes aren't needed anymore.madmaxoft@gmail.com1-0/+10
2012-08-24Monster classes don't use cPackets. Chat messages are sent / broadcast without cPackets. BlockEntities don't use cPackets.madmaxoft@gmail.com1-3/+6
2012-08-19Window, Chest, Furnace and Pawn are not using cPackets at allmadmaxoft@gmail.com1-19/+31
2012-06-14Attempt to bring sanity to newlines across systems.cedeel@gmail.com1-148/+148
2012-04-11Moved the commands /coords /viewdistance and /regeneratechunks from cServer.cpp to the Core pluginfaketruth1-3/+3
2012-03-24Reverted the previous commit - it is useless, since entities still depend heavily on cWorldmadmaxoft@gmail.com1-3/+1
2012-03-23Encapsulated cWorld functions needed in cWorldStorage into an interface, so that cWorldStorage can actually be used outside of MC-Server (such as storage conversion tools and chunk analyzers)madmaxoft@gmail.com1-1/+3
2012-03-09cClientHandles have a unique ID now to distinguish themfaketruth1-5/+5
2012-03-07Fixed bug where cPlayer's cClientHandle was used after cPlayer was destroyed http://forum.mc-server.org/showthread.php?tid=380faketruth1-3/+4
2012-02-20Removed some more cChunkPtr usagemadmaxoft@gmail.com1-0/+4
2012-02-20Using own ASSERT() that logs to filefaketruth1-1/+1
2012-02-15No longer using pointers for Vector3(f/d/i) in cEntity's and cTracerfaketruth1-12/+12
2012-02-13Rewritten most of the code for multithreading; still not 100%, but getting there. If this commit proves to be too problematic, we can always undo it.madmaxoft@gmail.com1-18/+45
2011-12-26Players can switch worlds on the fly with the command /gotoworld [worldName]. This uses the function cPlayer::MoveToWorld()faketruth1-0/+1
2011-12-26Made some functions in cChunk and cNoise inline, this should significantly increase chunk generation speedfaketruth1-1/+1
2011-12-25- fixed the code from the last commit :)lapayo94@gmail.com1-1/+1
2011-11-02Fixed some "Entity was not found in any chunk!" warningsfaketruth1-1/+4
2011-10-31Prepared some parts of the code for multi world support, I created lots of TODO'sfaketruth1-1/+5
2011-10-03MCServer c++ source filesfaketruth1-0/+108