summaryrefslogtreecommitdiffstats
path: root/src/Entities/Entity.cpp (unfollow)
Commit message (Expand)AuthorFilesLines
2014-09-09Added the player list to the 1.8 protocol.Howaner1-1/+1
2014-09-03Fixed style and alpha-sorting.madmaxoft1-2/+2
2014-09-01Fixed previous commit's wrong assumptions.madmaxoft1-10/+10
2014-09-01Fixed MSVC compilation, improved performance.madmaxoft1-30/+59
2014-08-31Fixed styleJaume Aloy1-7/+5
2014-08-30Added a_Digger checkJaume Aloy1-2/+2
2014-08-22More EnchantmentsJaume Aloy1-57/+70
2014-08-21Protection Enchantments, some fixesJaume Aloy1-2/+108
2014-08-19Changed if in BlockHandlerJaume Aloy1-1/+0
2014-08-19Changed if for switchJaume Aloy1-3/+2
2014-08-19Added more enchantments and some fixesJaume Aloy1-3/+22
2014-08-19Added some EnchantmentsJaume Aloy1-1/+61
2014-08-04Attempt to fix knockback and swimming.Howaner1-15/+13
2014-08-03Entity.cpp: Air timer comment fixarchshift1-1/+1
2014-08-03Code reduction and clarity fixesarchshift1-19/+9
2014-08-03Entity.cpp: On portal check, use if-else for current dimensionarchshift1-60/+54
2014-07-29Detrailed whitespaceTiger Wang1-3/+3
2014-07-23SuggestionsTiger Wang1-9/+14
2014-07-23Fix item durability.Howaner1-5/+8
2014-07-22Speed improvements, crash fixes, & self-suggestionsTiger Wang1-30/+29
2014-07-21SuggestionsTiger Wang1-35/+43
2014-07-21Style: Normalized to no spaces before closing parenthesis.madmaxoft1-2/+2
2014-07-20Bug and crash fixesTiger Wang1-18/+30
2014-07-20Added m_TicksAlive to entities, allows projectiles to hit their creatorsarchshift1-0/+3
2014-07-19Fixed clamping issuesarchshift1-4/+1
2014-07-18Fix failed merge and other issuesTiger Wang1-3/+3
2014-07-17Fixed tabs used for alignment.madmaxoft1-1/+1
2014-07-17More trailing whitespace fixes.madmaxoft1-2/+2
2014-07-17Basic style fixes.madmaxoft1-15/+15
2014-07-17Fixed many slime bugs.Howaner1-4/+1
2014-07-17Normalized comments.madmaxoft1-14/+14
2014-07-17Fixed mob knockbackTiger Wang1-23/+8
2014-07-16Resolved backwards compatibility issuesTiger Wang1-1/+1
2014-07-14Readability and clarity changesarchshift1-3/+6
2014-07-04Tailored death messagesTiger Wang1-4/+4
2014-06-29SuggestionsTiger Wang1-2/+3
2014-06-28Fixed server forcing players afloatTiger Wang1-1/+4
2014-06-22Some Entity.cpp style improvementsTiger Wang1-11/+6
2014-06-22Conforms to standardsTiger Wang1-1/+1
2014-06-21Fixed invalid iteratorsTiger Wang1-1/+2
2014-06-21More suggestionsTiger Wang1-1/+1
2014-06-17Added wither damage type, wither entity effect.archshift1-0/+1
2014-06-17Entity: only fire critical hit if damage type is physicalarchshift1-1/+2
2014-06-16Merge branch 'master' of github.com:mc-server/MCServerTycho1-20/+18
2014-06-14Simplified speed clamping.madmaxoft1-8/+3
2014-06-14Refactored speed-setting to use a common function for all cases.madmaxoft1-12/+15
2014-06-14Reverted portal creation codeTiger Wang1-100/+0
2014-06-12Fixed compileworktycho1-1/+1
2014-06-12Portals animate and delay correctlyTiger Wang1-28/+93
2014-06-10Portal improvements and suggestionsTiger Wang1-41/+89
2014-06-08Fixed deadlock when moving players to other worlds.Mattes D1-5/+5
2014-06-04SuggestionsTiger Wang1-2/+4
2014-06-04Configurable portalsTiger Wang1-13/+32
2014-06-04Added checks for no downfall biomesTiger Wang1-1/+1
2014-06-01Implemented bed homesTiger Wang1-0/+6
2014-05-31Implemented end and nether portalsTiger Wang1-0/+117
2014-05-23Fixed datatype conversion warning.Mattes D1-2/+2
2014-05-19Fixed a cactus Y position issueTiger Wang1-2/+3
2014-05-19Simplified cacti conditionsTiger Wang1-2/+2
2014-05-19DerpAlexander Harkness1-1/+1
2014-05-19Should have fixed assumptions about entity width.Alexander Harkness1-4/+5
2014-05-19Fixed clanging errors.Alexander Harkness1-5/+5
2014-05-18Implemented cacti damageTiger Wang1-0/+23
2014-05-18There's no "round" function in MSVC2008.madmaxoft1-1/+1
2014-05-12Movement Statisticsandrew1-2/+13
2014-05-12cEntity::Killed(cEntity *) Handler; Achievement triggers; cPlayer::AwardAchievement()andrew1-0/+5
2014-05-06Suggestions'dTiger Wang1-1/+1
2014-04-27Fixed warnings.madmaxoft1-0/+1
2014-04-27Redstone simulator now directly accesses cChunkTiger Wang1-0/+1
2014-04-27More comments!Tiger Wang1-1/+1
2014-04-27Added static const, initialized fields.archshift1-0/+2
2014-04-26Further refactored, Reverted Minecart changearchshift1-1/+1
2014-04-26FixesHowaner1-1/+1
2014-04-26Moved switch{} out of GetArmorCoverAgainst().archshift1-5/+26
2014-04-26Add entity invulnerableHowaner1-3/+18
2014-04-25Fix formattingr.ramazanov1-9/+15
2014-04-25Fix for clangr.ramazanov1-5/+1
2014-04-25Mobs shouldn't burn when it's Raining & Mob Knockback is far too muchr.ramazanov1-8/+5
2014-04-24Implemented suggestionsTiger Wang1-7/+6
2014-04-23Some change to Entity.cppTiger Wang1-92/+90
2014-04-23Mobs shouldn't burn when it's Raining #906r.ramazanov1-9/+30
2014-04-23Renamed getter and setter for IsFireproof.archshift1-1/+1
2014-04-23Fireproof status getter and setter.archshift1-0/+11
2014-04-22Fixed indentation and changed m_Fireproof to m_IsFireproof.archshift1-12/+12
2014-04-22Lay foundation for fireproof entities.archshift1-3/+12
2014-04-21Mobs shouldn't burn when it's Raining #906r.ramazanov1-5/+12
2014-04-18Fixed #906Tiger Wang1-0/+10
2014-04-17Added new AI rulesTiger Wang1-1/+1
2014-04-12Entities handle chunks properly againTiger Wang1-66/+49
2014-04-05Fixed Endiannes conversion routines for floats and doubles.madmaxoft1-1/+1
2014-03-20Minor Entity.cpp cleanupTiger Wang1-12/+9
2014-03-11Unified Matrix4 codeandrew1-1/+1
2014-03-05Added extra awesomeness to TNTTiger Wang1-188/+192
2014-03-01g_BlockXXX => cBlockInfo::XXXandrew1-3/+3
2014-02-05Fixed most of the reordering warningsTycho1-2/+2
2014-02-02Creative players take Plugin damageTiger Wang1-1/+2
2014-01-25All mobs now drown (fixes #54)Tiger Wang1-1/+94
2014-01-24Removed unused ReferenceManagerTiger Wang1-36/+0
2014-01-24Fixed crash with failed entity-loading.madmaxoft1-1/+2
2014-01-16Disabled excessive entity-related logging in Debug mode.madmaxoft1-1/+11
2014-01-16Removed obsoleted functionsTiger Wang1-3/+3
2014-01-13Final improvements to MinecartsTiger Wang1-36/+8
2014-01-13Detaching improvementsTiger Wang1-3/+5
2014-01-12Multiple enhancements and fixes to minecartsTiger Wang1-1/+4
2013-12-24Improved knockback animationTiger Wang1-3/+3
2013-12-23Fixed a comment in Entity.cppTiger Wang1-1/+1
2013-12-22Implemented knockback and critical hitTiger Wang1-4/+21
2013-12-20More reordering fixes.madmaxoft1-2/+2
2013-12-20Sorted a few constructors to remove warnings.madmaxoft1-5/+5
2013-12-20Fixed compiler warning when iterating over a fixed array of items (ARRAYCOUNT).madmaxoft1-1/+1
2013-12-16Added HandleSpeedFromAttachee so an entity can override the function.STRWarrior1-4/+14
2013-12-08Fixed angle normalization typo.madmaxoft1-1/+1
2013-12-08Fixed normalizing large angles.madmaxoft1-6/+3
2013-12-08Moved bindings-related to a Bindings subfolder.madmaxoft1-1/+1
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-11-03Added cEntity:GetYaw() and cEntity:SetYaw().madmaxoft1-2/+2
2013-09-19Fixed a crash in cEntity when the entity was at BlockY == 0.madmaxoft1-3/+2
2013-09-16Fixed friction for entitiesTiger Wang1-13/+13
2013-09-15Added breakTiger Wang1-0/+1
2013-09-13Even better pickup physicsTiger Wang1-18/+23
2013-09-13Even more fixes [SEE DESC]Tiger Wang1-14/+35
2013-09-13Fixed water speed issuesTiger Wang1-5/+6
2013-09-12Implemented xoft's suggestions againTiger Wang1-19/+16
2013-09-11Implemented xoft's suggestionsTiger Wang1-5/+22
2013-09-11More changes [SEE DESC]Tiger Wang1-1/+1
2013-09-11Fixed two bugsTiger Wang1-6/+6
2013-09-11Added void damageTiger Wang1-0/+23
2013-09-10Entities now maintain speed outside of worldTiger Wang1-2/+9
2013-09-07Fixed formatting and removed gravity thingTiger Wang1-1/+2
2013-09-07Arrows have proper yaw and pitch when shot, and stop when they hit a block.madmaxoft1-0/+33
2013-09-06Implemented SteerVehicle packet.madmaxoft1-6/+27
2013-09-06Implemented SteerVehicle packet.madmaxoft1-6/+27
2013-09-05Further physics improvements [SEE DESC]Tiger Wang1-12/+12
2013-09-04Pickups spawn with correct speed and positionTiger Wang1-1/+1
2013-09-04Added better push out of entitiesTiger Wang1-1/+8
2013-08-29Physics enhancementsTiger Wang1-6/+15
2013-08-27Entities fall 3x slower in watermadmaxoft1-1/+1
2013-08-26Debug: arrow log their position in each tickmadmaxoft1-19/+26
2013-08-25Moved entity spawning into cEntity::Initialize().madmaxoft1-0/+4
2013-08-19Moved entities into the Entities subfolder.madmaxoft1-11/+11
2013-08-08Addeed OnSpawningEntity, OnSpawnedEntity, OnSpawningMonster, OnSpawnedMonster hooks.madmaxoft1-1/+9
2013-07-24cEntity doesn't process physics / burning when in an invalid chunkmadmaxoft@gmail.com1-2/+8
2013-07-07Mobs are assigned MaxHealth from monsters.ini; reading monsters.ini doesn't need settings.ini values anymore.madmaxoft@gmail.com1-0/+9
2013-07-07Improved function names for protocol packet sending; alpha-sorted the function listsmadmaxoft@gmail.com1-7/+7
2013-07-01dtOnFire damage wasn't dealt properlymadmaxoft@gmail.com1-1/+1
2013-07-01Fixed burn / fire damage in each game tick.madmaxoft@gmail.com1-9/+6
2013-07-01Rewritten entity-on-fire management ("forever on fire" bugs)madmaxoft@gmail.com1-4/+462
2013-06-25Unified the way mobs are spawned (egg vs natural). Fixed deadlocks in mob moving. Fixed mob destroying code.madmaxoft@gmail.com1-2/+6
2013-06-18TNT fixes.madmaxoft@gmail.com1-8/+18
2013-05-21Fixed linking error from rev 1498madmaxoft@gmail.com1-2/+19
2013-05-21Entity: Switched detection of ground to use g_BlockIsSolid global variable.keyboard.osh@gmail.com1-16/+16
2013-05-05Entity: Now entites inside a cobweb slow down their speedkeyboard.osh@gmail.com1-8/+22
2013-04-28cEntity: Added mass to entities.keyboard.osh@gmail.com1-0/+20
2013-04-28Added initialization of rotation in cEntity.keyboard.osh@gmail.com1-0/+1
2013-04-28Increased Maximum speed to 78 blocks per secondkeyboard.osh@gmail.com1-6/+6
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-0/+160
2013-04-13Rewritten entities so that they are owned by individual chunks and ticked within their chunk's Tick()madmaxoft@gmail.com1-112/+28
2013-04-07Fixed an assert in entities when destroying an entity without ever initializing itmadmaxoft@gmail.com1-2/+5
2013-04-07Fixed bug in entities movement: Corrected proper flooring of double values for the relative move packet, and teleport packet. Also, made the velocity packet to be sent first than the positions packets.keyboard.osh@gmail.com1-13/+13
2013-04-03Fixed bug with Rotation not getting properly wrapped after being set.keyboard.osh@gmail.com1-0/+2
2013-04-02Added support for head yaw tracking and packet sending and fixed bug in BroadcastMovementUpdatekeyboard.osh@gmail.com1-39/+73
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-10/+84
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-12/+120
2013-03-09Pickups are now being saved into Anvil.madmaxoft@gmail.com1-9/+20
2013-03-03Player can sit in minecarts (but not move them yet)madmaxoft@gmail.com1-27/+94
2013-03-02Rewritten SandSimulator to use direct chunk access; and sand falling on torches now creates a pickup.madmaxoft@gmail.com1-2/+2
2013-02-10Removed useless logging from cEntity::GetLookVector()madmaxoft@gmail.com1-2/+1
2013-02-03Added a GetClassStatic function to all entities, as well as cFurnaceEntity, cChestEntity and cWorldfaketruth1-1/+13
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-0/+11
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-3/+3
2012-12-21Reworked the IsA() / GetClass() framework to actually be useful. Added GetParentClass().madmaxoft@gmail.com1-4/+11
2012-12-21Replaced "const double &" with plain "double" for simplicitymadmaxoft@gmail.com1-11/+11
2012-10-06Removed a few debugging messages from the release builds.madmaxoft@gmail.com1-1/+1
2012-09-24Source files cleanup: The rest of the files renamed.madmaxoft@gmail.com1-6/+6
2012-08-28Moved all packet-serializing code into cProtocol125; half the packet classes aren't needed anymore.madmaxoft@gmail.com1-0/+2
2012-08-24Monster classes don't use cPackets. Chat messages are sent / broadcast without cPackets. BlockEntities don't use cPackets.madmaxoft@gmail.com1-39/+8
2012-08-19Window, Chest, Furnace and Pawn are not using cPackets at allmadmaxoft@gmail.com1-11/+2
2012-06-14Attempt to bring sanity to newlines across systems.cedeel@gmail.com1-382/+382
2012-03-14Split chunk data into separate arrays; decoupled most sources from cChunk.h dependencymadmaxoft@gmail.com1-2/+1
2012-03-10Using references instead of pointers for sending packetsmadmaxoft@gmail.com1-3/+3
2012-03-09cClientHandles have a unique ID now to distinguish themfaketruth1-1/+1
2012-03-07Fixed bug where cPlayer's cClientHandle was used after cPlayer was destroyed http://forum.mc-server.org/showthread.php?tid=380faketruth1-0/+2
2012-03-03Got rid of some hardcoded numbers, now using hardcoded variables! woofaketruth1-1/+1
2012-02-26Attempt at fixing crashes with disconnecting playersmadmaxoft@gmail.com1-6/+10
2012-02-22That 2nd assert didn't make much sense...faketruth1-1/+2
2012-02-22Added some asserts to trace a bugfaketruth1-1/+1
2012-02-20Removed some more cChunkPtr usagemadmaxoft@gmail.com1-30/+53
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-21/+18
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-113/+163
2012-01-29VC2008 / VC2010: Enabled precompiled header through Globals.h; the header included in every module in the project. Compilation optimization.madmaxoft@gmail.com1-1/+3
2012-01-19Terrain generation is synchronous again, async generation has bugs.faketruth1-1/+1
2011-12-26Made some functions in cChunk and cNoise inline, this should significantly increase chunk generation speedfaketruth1-14/+3
2011-12-25- fixed the code from the last commit :)lapayo94@gmail.com1-4/+6
2011-12-25- Fixed a critical bug, which caused players to not getting spawned on the others clientlapayo94@gmail.com1-0/+5
2011-11-02Fixed some "Entity was not found in any chunk!" warningsfaketruth1-10/+29
2011-11-01You can now run multiple worlds by defining them in settings.ini . However there's no way to change worlds on the fly yetfaketruth1-0/+2
2011-10-31Prepared some parts of the code for multi world support, I created lots of TODO'sfaketruth1-11/+15
2011-10-03MCServer c++ source filesfaketruth1-0/+283