summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.h (unfollow)
Commit message (Expand)AuthorFilesLines
2016-03-21Revert "Lua callback"Mattes D1-3/+3
2016-03-17Changed cLuaWindow callbacks to use cLuaState::cCallback.Mattes D1-3/+3
2016-02-19Proper entity destruction in non-ticking chunksLogicParrot1-0/+2
2016-01-22Improved tamed wolf pack cooperation and projectile reactionsLogicParrot1-2/+5
2016-01-16Fix crash when tamed wolf is hit by arrowsLogicParrot1-1/+1
2016-01-12Tamed wolf assists owner (attack / defence)LogicParrot1-0/+3
2015-12-25Freeze player until chunk is loadedSafwat Halaby1-1/+29
2015-12-13blockheight mechanismGargaj1-2/+0
2015-12-08Small spelling issues fixedJulian Laubstein1-3/+3
2015-08-20Fixed food drain bugsTiger Wang1-11/+4
2015-07-29Silenced and fixed many warning messages across multiple files.Samuel Barney1-3/+3
2015-06-10Implemented nether portal scanning code.Lane Kolbly1-1/+1
2015-06-02Added system and above action bar chat messagesjan641-8/+13
2015-05-23Fix gamemode not changing properly.Alexander Harkness1-84/+83
2015-05-23Fixed missing overrides and added a ignore flag for reserved macro for clang version 3.6 and higher.Lukas Pioch1-5/+5
2015-05-09More style checking.Mattes D1-1/+1
2015-05-04Entity improvementsTiger Wang1-1/+1
2015-04-25cPlayer now checks restrictions.Mattes D1-1/+12
2015-02-28Replaced short int with int for Player experienceDevToaster1-1/+1
2015-02-28 modified: src/Entities/Player.cppDevToaster1-10/+10
2015-02-08Handle client 'leave bed' requestTiger Wang1-2/+12
2015-02-07SpacingHowaner1-1/+1
2015-02-07cPlayer should override IsOnGround()Howaner1-1/+1
2015-01-27Converted cServer to use the cNetwork API.Mattes D1-3/+15
2015-01-11Initial convertion of a_Dt to std::chronoTycho1-2/+2
2014-12-24APIDump: Updated the player block placement documentation.Mattes D1-1/+2
2014-12-24Refactored all player block placing to go through hooks.Mattes D1-0/+18
2014-10-23En masse NULL -> nullptr replaceTiger Wang1-2/+2
2014-10-20En masse NULL -> nullptr replaceTiger Wang1-2/+2
2014-10-20Migrated cSleep and cTimer to std::chronoTiger Wang1-1/+1
2014-10-01cPlayer: Removed useless functions from the Lua API.madmaxoft1-2/+6
2014-09-16Preparing 1.8 changesnesco1-0/+3
2014-09-02Added the new functions to APIDump.Howaner1-1/+1
2014-09-02Added SetCustomName() to players.Howaner1-0/+15
2014-08-21Removed last remnant of cGroup.Mattes D1-1/+0
2014-08-20cPlayer: Exported the LoadRank function to Lua API.Mattes D1-2/+2
2014-08-19cPlayer reads ranks from cRankManager.Mattes D1-23/+30
2014-08-11Fixed tolua error with static initializationarchshift1-3/+3
2014-08-11Player.cpp: change unnamed enum to constant integersarchshift1-6/+7
2014-08-03Added cPlayer::GetUUID().madmaxoft1-0/+3
2014-08-03Removed unused cPlayer::FoodPoison functionarchshift1-3/+0
2014-07-31Fixed hunger bugs, Implemented golden apple, added jump statistic, added correct food effects.Howaner1-4/+1
2014-07-31Fixed UUIDs handling in cPlayer.madmaxoft1-1/+1
2014-07-24Removed redundant semicolons and re-added warningarchshift1-1/+1
2014-07-23SuggestionsTiger Wang1-3/+3
2014-07-23Fix item durability.Howaner1-1/+1
2014-07-22Speed improvements, crash fixes, & self-suggestionsTiger Wang1-1/+0
2014-07-21SuggestionsTiger Wang1-1/+1
2014-07-21Style: Normalized to no spaces before closing parenthesis.madmaxoft1-7/+7
2014-07-20Bug and crash fixesTiger Wang1-6/+9
2014-07-18Fix failed merge and other issuesTiger Wang1-10/+1
2014-07-17Fixed tabs used for alignment.madmaxoft1-13/+13
2014-07-17Basic style fixes.madmaxoft1-2/+2
2014-07-17Normalized comments.madmaxoft1-3/+3
2014-07-16Another fix for excessive food drainTiger Wang1-1/+1
2014-07-11Player data filenames are based on UUID.madmaxoft1-13/+21
2014-07-11Preparation for player UUID-based storage: LoadFromFile()madmaxoft1-0/+9
2014-07-04Tailored death messagesTiger Wang1-1/+1
2014-07-02Fixed player teleport food drainTiger Wang1-0/+5
2014-06-29Properly implemented enderchestsTiger Wang1-2/+9
2014-06-21More suggestionsTiger Wang1-2/+4
2014-06-19EntityEffects.x -> EntityEffect.x, Object-Oriented effectsarchshift1-3/+0
2014-06-17Pawn: renamed HandleEntityEffects to HandleEntityEffectarchshift1-1/+1
2014-06-17Player: made healing instantaneousarchshift1-1/+1
2014-06-17Player: Removed food-poisoning-specific code, set duration to 30 secondsarchshift1-6/+1
2014-06-17Entity effects: Added handlers for entity effectsarchshift1-0/+3
2014-06-16Add bow charging animationHowaner1-1/+1
2014-06-16Merge branch 'master' of github.com:mc-server/MCServerTycho1-2/+9
2014-06-16Implemented PR suggestionsarchshift1-1/+2
2014-06-15Players are saved regularlyTiger Wang1-1/+4
2014-06-14Refactored speed-setting to use a common function for all cases.madmaxoft1-9/+4
2014-06-12Portals animate and delay correctlyTiger Wang1-5/+5
2014-06-11Player.h: Moved doxy-comments to Entity.harchshift1-3/+3
2014-06-08Added queue for adding entities to cWorld.Mattes D1-0/+2
2014-06-04SuggestionsTiger Wang1-4/+8
2014-06-01Implemented bed homesTiger Wang1-3/+12
2014-05-31Implemented end and nether portalsTiger Wang1-1/+1
2014-05-22Added doxy-commentsSTRWarrior1-6/+8
2014-05-22cEntity::SetSpeed(a_Vector3d) isn't virtualized anymoreSTRWarrior1-1/+1
2014-05-22cPlayer overrides the SetSpeedXX functionsSTRWarrior1-1/+5
2014-05-22Both SetSpeed functions are now overridden by cPlayerSTRWarrior1-1/+4
2014-05-20Cleaned up cPlayer::UpdateMovementStats; Wither achievementsandrew1-0/+3
2014-05-13Fixesandrew1-6/+3
2014-05-12Movement Statisticsandrew1-0/+6
2014-05-12cEntity::Killed(cEntity *) Handler; Achievement triggers; cPlayer::AwardAchievement()andrew1-0/+11
2014-05-11Statistic Managerandrew1-0/+7
2014-04-26Add entity invulnerableHowaner1-1/+1
2014-04-23Some change to Entity.cppTiger Wang1-3/+0
2014-04-19Fixed Flint and Steel, reverted Minecart change, renamed a parameter namejfhumann1-1/+1
2014-04-18Did some static analysis, fixed some bugs and optimized a lot of codejfhumann1-1/+1
2014-04-05Added cPlayer:SendRotation() API function.madmaxoft1-0/+6
2014-03-20Plugins can set flying speed.madmaxoft1-72/+88
2014-03-20Rewritten player speeds to be relative unit-less.madmaxoft1-5/+9
2014-03-09Beds now work properly fixes #707Tiger Wang1-3/+14
2014-03-09CheckBlockInteractionsRate() fixed & enabledTiger Wang1-10/+1
2014-02-16Links sent via chat messages are clickable.madmaxoft1-1/+2
2014-02-16Fixed minor formatting issues from #682Tiger Wang1-2/+0
2014-02-16Add Exp Bottle EffectsHowaner1-0/+2
2014-02-15Implemented cCompositeChat.madmaxoft1-0/+1
2014-02-07Improved chat messaging functionsTiger Wang1-7/+8
2014-02-06Added more chat functionsTiger Wang1-1/+0
2014-02-05Removed deprecated HasCommand functionSTRWarrior1-1/+0
2014-02-05Fixed annoying creative on fire bugTiger Wang1-0/+3
2014-02-04Added more SendMessageXXX() functionsTiger Wang1-0/+4
2014-02-03Added SendMessageXXX() to cPlayerTiger Wang1-0/+3
2014-01-25Implemented fall damage for mobsTiger Wang1-1/+1
2014-01-25All mobs now drown (fixes #54)Tiger Wang1-22/+0
2014-01-24Fixed spacing and doxycomments.Mike Hunsinger1-3/+3
2014-01-23Split TossItem into three Toss functions (Held, Equipped and Pickup)Mike Hunsinger1-1/+8
2014-01-20Scoreboard deserializationandrew1-2/+5
2014-01-19Basic scoreboard implementationandrew1-1/+10
2014-01-13Detaching improvementsTiger Wang1-0/+2
2013-12-22merged in warnings changesTycho Bickerstaff1-2/+2
2013-12-22converted commneted paramater names to the unused macroTycho Bickerstaff1-1/+1
2013-12-21Floater now dissapears when the player doesn't have an fishing rod equipped.STRWarrior1-0/+3
2013-12-21Root is now warnings cleanTycho Bickerstaff1-2/+2
2013-12-20Sorted a few constructors to remove warnings.madmaxoft1-3/+6
2013-12-19Implented IsFishing, SetIsFishing and GetFloaterID().STRWarrior1-0/+10
2013-12-16Fixed cClientHandle::Tick() being called from two threads.madmaxoft1-2/+0
2013-12-15Renamed ShootTo function to ForceSetSpeed.STRWarrior1-2/+2
2013-12-15This adds a function that allows you to 'shoot' a player towards a direction.STRWarrior1-0/+3
2013-12-15Added m_IsFlying and m_CanFly. Both have a Get and Set function. Added cClientHandle::SendPlayerAbilities() functionSTRWarrior1-1/+13
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-11-21Exported static XP calculation to Lua API.madmaxoft1-10/+8
2013-11-16edited comment and changed error behavior of DeltaXpDaniel O'Brien1-1/+2
2013-11-16updated plugin again...Daniel O'Brien1-1/+1
2013-11-16removed SpendExperience and changed AddExperience to handle removing XpDaniel O'Brien1-5/+2
2013-11-16fixed bug and added SpendExperience()Daniel O'Brien1-0/+4
2013-11-16fix possible threadlock issue, changed function names to be closer to standardDaniel O'Brien1-8/+15
2013-11-15finished #143 I believeDaniel O'Brien1-0/+2
2013-11-15added cProtocol function to pass xp to clientDaniel O'Brien1-7/+7
2013-11-14luaExportDaniel O'Brien1-0/+5
2013-11-13changed function nameDaniel O'Brien1-3/+3
2013-11-13minor changesDaniel O'Brien1-1/+1
2013-11-13changed name conventionDaniel O'Brien1-3/+3
2013-11-13Fixed problems with code style etcDaniel O'Brien1-21/+16
2013-11-13Player Xp, includes get/set and addExperienceDaniel O'Brien1-1/+1
2013-11-13Player XpDaniel O'Brien1-1/+43
2013-11-03Added cPlayer::GetEffectiveGameMode().madmaxoft1-0/+4
2013-10-24Cleanup in cPlayer.madmaxoft1-2/+4
2013-10-24Unified cPlayer's Heal() function with cEntity's.madmaxoft1-6/+9
2013-08-30Moved throw pos and speed calculation from cProjectileEntity into cPlayer.madmaxoft1-1/+7
2013-08-30Shooting a bow kinda works.madmaxoft1-0/+15
2013-08-19Debuggers: Added continuous hunger reporting.madmaxoft1-2/+5
2013-08-19Moved entities into the Entities subfolder.madmaxoft1-2/+2
2013-08-13Clients are now ticked in cServer first, then in cWorld once they get assigned a world.madmaxoft1-1/+1
2013-08-09Removed the need to recalculate whether player is under water in ApplyFoodExhaustionJames Ravenscroft1-5/+7
2013-08-09Added IsSwimming and IsSubmerged flags and access methodsJames Ravenscroft1-1/+13
2013-08-08Made comments more readable by adding space between // and text content. Added /// doxygen syntax comments to declarationsJames Ravenscroft1-2/+2
2013-08-08Fixed the formatting issues in player cpp filesJames Ravenscroft1-8/+8
2013-08-08Made player drowning implementationJames Ravenscroft1-1/+12
2013-08-08Addeed OnSpawningEntity, OnSpawnedEntity, OnSpawningMonster, OnSpawnedMonster hooks.madmaxoft1-1/+1
2013-07-28Player eating is now properly broadcast to other players.madmaxoft1-10/+30
2013-07-28Implemented basic eating support.madmaxoft1-0/+13
2013-07-28Added cPlayer::IsGameModeXXX() and cWorld::IsGameModeXXX() functions.madmaxoft1-1/+12
2013-07-12First implementation of movement-related hunger and APImadmaxoft@gmail.com1-15/+47
2013-07-07Fixed sprinting in 1.6.1, made speeds available through API; fixed messages containing quotes.madmaxoft@gmail.com1-1/+31
2013-07-03Fixed player moving between worlds.madmaxoft@gmail.com1-1/+1
2013-07-01Rewritten entity-on-fire management ("forever on fire" bugs)madmaxoft@gmail.com1-4/+4
2013-06-04Implemented proper player crouching.madmaxoft@gmail.com1-0/+8
2013-06-02LuaWindow: Fixed memory leaks with unclosed windowsmadmaxoft@gmail.com1-3/+3
2013-05-30LuaWindow: Initial code, the window can be opened, but not much manipulatedmadmaxoft@gmail.com1-7/+17
2013-05-30Implemented left-click inventory paintingmadmaxoft@gmail.com1-4/+18
2013-05-24Refactored cInventory to use cItemGrid for the actual Storagemadmaxoft@gmail.com1-2/+4
2013-05-19Inventory code cleanup, players can now see each other's armormadmaxoft@gmail.com1-2/+1
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/+2
2013-04-13Rewritten entities so that they are owned by individual chunks and ticked within their chunk's Tick()madmaxoft@gmail.com1-2/+2
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-1/+1
2013-01-12Merged branch "branches/hooks" into "trunk".madmaxoft@gmail.com1-38/+39
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/+1
2012-12-21Fixed linux compilationmadmaxoft@gmail.com1-2/+0
2012-12-21Reworked the IsA() / GetClass() framework to actually be useful. Added GetParentClass().madmaxoft@gmail.com1-1/+3
2012-12-21Refactored the TakeDamage API to take equipped weapon and armor into consideration (PvP untested)madmaxoft@gmail.com1-12/+43
2012-11-27Added initial adventure mode supportluksor111@gmail.com1-0/+1
2012-11-11Cleanup: Removed deprecated functions from Lua APImadmaxoft@gmail.com1-2/+0
2012-10-18Converted some const char*s and std::strings to AStringsfaketruth1-4/+8
2012-10-14Completely removed support for old style Lua plugins (can use both Plugin and NewPlugin in settings.ini for now)faketruth1-6/+6
2012-10-06Lua plugins can get player's equipped itemmadmaxoft@gmail.com1-1/+1
2012-09-24Source files cleanup: The rest of the files renamed.madmaxoft@gmail.com1-2/+2
2012-09-20Refactored windows.madmaxoft@gmail.com1-8/+12
2012-08-28Moved all packet-serializing code into cProtocol125; half the packet classes aren't needed anymore.madmaxoft@gmail.com1-1/+1
2012-08-24Monster classes don't use cPackets. Chat messages are sent / broadcast without cPackets. BlockEntities don't use cPackets.madmaxoft@gmail.com1-3/+7
2012-08-19Almost all packets' handling is now rewritten not to use cPacket descendants elsewhere than in cClientHandle.madmaxoft@gmail.com1-5/+6
2012-08-18Packet refactoring, phase two, partial. Rewritten a few packet handling functions not to use cPacket-descendant objects.madmaxoft@gmail.com1-0/+1
2012-08-10Fixed a crash in creative inventory (FS 235, patch submitted by l0udPL)madmaxoft@gmail.com1-1/+1
2012-08-03Fixed a few gcc pedantic warnings; made BLOCKTYPE an unsigned char type.madmaxoft@gmail.com1-1/+2
2012-07-17Simple health regeneration systemlapayo94@gmail.com1-3/+17
2012-06-14Attempt to bring sanity to newlines across systems.cedeel@gmail.com1-146/+146
2012-05-29Refactored item-eating from cClientHandle into cPlayermadmaxoft@gmail.com1-2/+7
2012-03-16Got rid of cPlayer::sPlayerStatefaketruth1-6/+13
2012-03-07Fixed bug where cPlayer's cClientHandle was used after cPlayer was destroyed http://forum.mc-server.org/showthread.php?tid=380faketruth1-12/+15
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-4/+8
2012-02-01Rewritten cAuthenticator to make use of the new cIsThread architecture - now authentication runs in a single separate thread for all clients;madmaxoft@gmail.com1-3/+3
2012-01-31Changed how Lua handles the (Post)Params in the HTTPRequest of a WebPluginfaketruth1-1/+1
2012-01-30Added a WebAdmin interface to view users their groups, and the permissions of groups.faketruth1-0/+3
2012-01-29VC2008 / VC2010: Enabled precompiled header through Globals.h; the header included in every module in the project. Compilation optimization.madmaxoft@gmail.com1-2/+4
2012-01-01CreativeInventory Updatelapayo94@gmail.com1-2/+1
2012-01-01- implemented separated inventory for creative mode (cSurvivalInventory and cCreativeInventory)lapayo94@gmail.com1-2/+8
2011-12-29 - Initial food handling by cedeelmtilden@gmail.com1-0/+1
2011-12-28- implemented the fire simulation in native c++ (cFireSimulator)lapayo94@gmail.com1-0/+2
2011-12-28- Implemented Drops from Burning animalslapayo94@gmail.com1-19/+12
2011-12-27 - Added basic ping handling.mtilden@gmail.com1-1/+1
2011-12-26Players can switch worlds on the fly with the command /gotoworld [worldName]. This uses the function cPlayer::MoveToWorld()faketruth1-0/+2
2011-12-26 - Added timer to cPlayer PlayerListItem because sending the packets like minecraft does (every tick per player) is 20 pps per client to each client and was causing Kicks for having too high of a packet queuemtilden@gmail.com1-0/+3
2011-12-26 - Make Color was using 2 extra characters which took 2 characters off the 16 max (including color codes) for scoreboard displaymtilden@gmail.com1-1/+1
2011-12-25Hold item is now dropped when inventory is closedlapayo94@gmail.com1-1/+1
2011-11-10Can now set gamemode via lua.admin@omencraft.com1-0/+1
2011-11-10Made block action sanity checks more robust, water buckets, lava buckets and empty buckets should all now work.admin@omencraft.com1-3/+6
2011-11-09Added m_IP to player class and binding to get IP for LUA. (Probably should use m_pState)admin@omencraft.com1-1/+4
2011-11-02Fixed some "Entity was not found in any chunk!" warningsfaketruth1-1/+3
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-11-01Put in some sanity checks to ensure players don't interact with blocks too quickly. Changed gamemode to be player based. (MCServer crashes when picking up an item. Need to find and fix bug.)admin@omencraft.com1-2/+10
2011-10-21Compiles for linuxfaketruth1-0/+1
2011-10-03MCServer c++ source filesfaketruth1-0/+96