aboutsummaryrefslogtreecommitdiff
path: root/src/player.h
AgeCommit message (Collapse)Author
2016-06-24Player: New get_look, set_look APIraymoo
Deprecate get_look / set_look pitch / yaw
2016-06-03Initial Gamepad supportest31
Adds initial ingame gamepad support to minetest. Full Formspec support is not implemented yet and can be added by a later change.
2016-03-14Fix player teleportation bug whilst sneakingHybridDog
Only set back position when sneaking if player wasn't teleported by adding and using a bool "got_teleported" to player it fixes #2876
2016-02-14Player::accelerateHorizontal/Vertical should be member of LocalPlayerLoic Blot
2016-02-11v2d & aabbox3d<f32> & sky cleanupsnerzhul
* Sky: rename Box => m_box and inline getBoundingBox * Uniformize aabbox3d<f32> to aabb3f
2015-12-15Get movement setting instead of hard coded valueasl97
2015-11-06Add server side ncurses terminalest31
This adds a chat console the server owner can use for administration or to talk with players. It runs in its own thread, which makes the user interface immune to the server's lag, behaving just like a client, except timeout. As it uses the same console code as the f10 console, things like nick completion or a scroll buffer basically come for free. The terminal itself is written in a general way so that adding a client version later on is just about implementing an interface. Fatal errors are printed after the console exists and the ncurses terminal buffer gets cleaned up with endwin(), so that the error still remains visible. The server owner can chose their username their entered text will have in chat and where players can send PMs to. Once the username is secured with a password to prevent anybody to take over the server, the owner can execute admin tasks over the console. This change includes a contribution by @kahrl who has improved ncurses library detection.
2015-08-23Clean up threadingShadowNinja
* Rename everything. * Strip J prefix. * Change UpperCamelCase functions to lowerCamelCase. * Remove global (!) semaphore count mutex on OSX. * Remove semaphore count getter (unused, unsafe, depended on internal API functions on Windows, and used a hack on OSX). * Add `Atomic<type>`. * Make `Thread` handle thread names. * Add support for C++11 multi-threading. * Combine pthread and win32 sources. * Remove `ThreadStarted` (unused, unneeded). * Move some includes from the headers to the sources. * Move all of `Event` into its header (allows inlining with no new includes). * Make `Event` use `Semaphore` (except on Windows). * Move some porting functions into `Thread`. * Integrate logging with `Thread`. * Add threading test.
2015-07-23Optional reconnect functionalityest31
Enable the server to request the client to reconnect. This can be done with the now extended minetest.request_shutdown([reason], [reconnect]) setting.
2015-07-02Fix code style from recent commits and add misc. optimizationskwolekr
2015-05-28Add some missing getter functions to the lua APITeTpaAka
ObjectRef: get_properties get_armor_groups get_animation get_attach get_bone_position Players: get_physics_override hud_get_hotbar_itemcount hud_get_hotbar_image hud_get_hotbar_selected_image get_sky get_day_night_ratio get_local_animation get_eye_offset Global: minetest.get_gen_notify minetest.get_noiseparams
2015-03-31Fix usage of destroyed mutexkwolekr
Also fix a memory leak Fix overloaded virtual warning in Player::move() Remove some trailing whitespace
2015-03-22Player: Fix a deadlock triggered by previous commit ↵Loic Blot
0e5e49736c0a5fa29bca257bafc02d7c7a7171c9
2015-03-22Protect Player::hud from concurrent modificationsLoic Blot
Sometimes HUD can be modified by ServerThread and EmergeThread results in a crash on client side because the HUD is not correct
2015-03-12handleCommand_Breath mustn't update breath is player is dead. A dead player ↵Loic Blot
doesn't breath. Add Player::isDead function to check player is dead
2015-03-07For usages of assert() that are meant to persist in Release builds (when ↵Craig Robbins
NDEBUG is defined), replace those usages with persistent alternatives
2014-11-08Implement WieldMeshSceneNode which improves wield mesh renderingKahrl
- Don't create and cache an extruded mesh for every (non-node) item. Instead use a single one per image resolution. - For cubic nodes reuse a single wield mesh too - Improve lighting of the wielded item - Increase far value of wield mesh scene camera, fixes #1770 - Also includes some minor refactorings of Camera and GenericCAO.
2014-10-01Make players check inventory modification properlyShadowNinja
2014-10-01Only set player dirty flag if values changeShadowNinja
2014-10-01Simplify player modification checksShadowNinja
2014-06-23Only try to load from possible player filesShadowNinja
2014-06-23Only keep players loaded while they're connectedShadowNinja
2014-05-31Small cleanup of hud add/remove codesapier
2014-04-15Fix all warnings reported by clangSfan5
2014-04-12Use integers instead of float valuesBlockMen
2014-04-12Add third person viewBlockMen
2013-12-03Add sneak and sneak_glitch to set_physics_override()PilzAdam
2013-08-14Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl
2013-07-20Add set_breath and get_breath to lua API.RealBadAngel
2013-06-28Dont write player files all the timePilzAdam
2013-06-22Print playername when failing to read playerfile and ignore files starting ↵PilzAdam
with .
2013-06-19Add drowningPilzAdam
2013-05-26Add ObjectRef.hud_set_hotbar_itemcount and add TOCLIENT_HUD_SET_PARAMKahrl
2013-05-19Fix nearly all warningskwolekr
2013-04-25Move player collisionbox to player classsapier
2013-04-24Added support to disable built-in HUD elementsDiego Martínez
2013-04-18Split HUD code off to hud.cpp, make into a class, extensive Lua HUD modificationkwolekr
2013-04-18Lua HUDJonathon Anderson
2013-04-05Allow modifying movement speed, jump height and gravity per-player via the ↵MirceaKitsune
Lua API.
2013-02-24Update Copyright YearsSfan5
2013-02-24Change Minetest-c55 to MinetestPilzAdam
2013-02-14Improved Player PhysicsMirceaKitsune
2013-01-03Tilt camera on player damage (tweaked by PilzAdam)Jeija
2012-12-02Don't send player position from client to server if the player hasn't movedMirceaKitsune
2012-11-25RealBadAngel's patch which allows the lua api to read pressed player keys. ↵MirceaKitsune
This should make it possible to change the player's animation based on what he is doing Correct lua api version number Always update animations and attachments after the entity is added to scene client side. Fixes animations not being applied in client initialization for some reason. Attachments should be re-tested now just to be safe. Fix a segmentation fault caused by reaching materials that didn't exist in a loop for setting texture
2012-07-25Remove special handling of creative modePerttu Ahola
2012-07-19Allow defining player's inventory form in LuaPerttu Ahola
2012-06-17Optimize headersPerttu Ahola
2012-06-17Initially split utility.h to multiple files in util/Perttu Ahola
2012-06-05Switch the license to be LGPLv2/later, with small parts still remaining as ↵Perttu Ahola
GPLv2/later, by agreement of major contributors