aboutsummaryrefslogtreecommitdiff
path: root/src/game.cpp
Commit message (Expand)AuthorAge
...
* | Merge remote-tracking branch 'oblomov/new_input'Perttu Ahola2011-08-22
|\|
| * Overhaul the input systemGiuseppe Bilotta2011-08-22
* | lava!Perttu Ahola2011-08-15
|/
* added ipban supportConstantin Wenger2011-08-12
* Keep track of player itemGiuseppe Bilotta2011-08-11
* Refactor player's eye position codingGiuseppe Bilotta2011-08-11
* merged delta and c55Perttu Ahola2011-08-05
|\
| * Fixed a few problems in the ladder update, and changed the speed to account f...Mark Holmquist2011-08-01
| * Added ladders--they don't have any use yet, thoughMark Holmquist2011-08-01
* | Fixed farmesh to such that it was a long time ago.Perttu Ahola2011-08-03
|/
* Server configuration is now written when "/#setting whatever = whatever" is i...Perttu Ahola2011-07-30
* Rats are now eatable. Also made their selection box move smoothly.Perttu Ahola2011-07-30
* Removed remaining -delta referencesPerttu Ahola2011-07-30
* Made hotbar a bit smallerPerttu Ahola2011-07-23
* merged the content type extension and deltaPerttu Ahola2011-07-23
|\
| * * changed GUI to indicate Minetest ΔNils Dagsson Moskopp2011-07-17
| * Merge branch 'upstream/master'Nils Dagsson Moskopp2011-07-14
| |\
| * | + farmesh config optionsJiří Procházka2011-07-11
| * | Merge branch 'master' of https://github.com/erlehmann/minetest-delta.git into...Sebastian Rühl2011-06-26
| |\ \
| | * | + rail block bounding boxNils Dagsson Moskopp2011-06-08
| | * | fast_move and free_move can now be toggledteddydestodes2011-05-29
* | | | extended content-type rangePerttu Ahola2011-07-23
| |_|/ |/| |
* | | made screen go slightly blue when underwaterPerttu Ahola2011-07-01
* | | made dtime jitter compare value and fps calculation a bit faster changingPerttu Ahola2011-06-27
* | | Made the initial loading screen slightly more alivePerttu Ahola2011-06-26
* | | added screenshot key F12 (from spongie)Perttu Ahola2011-06-26
* | | reorganized a lot of stuff and modified mapgen and objects slightly while doi...Perttu Ahola2011-06-26
* | | added and commented out some debug outputPerttu Ahola2011-06-26
* | | even more code refactoringPerttu Ahola2011-06-26
|/ /
* | Hand-picked Mac OSX cursor and bundle path fixes from https://bitbucket.org/t...Perttu Ahola2011-06-18
* | farmesh render range is now dynamicPerttu Ahola2011-06-18
* | farmesh is now usable.Perttu Ahola2011-06-18
* | modified health bar a bitPerttu Ahola2011-06-18
* | enabled word wrap in chatPerttu Ahola2011-06-18
* | removed furnace menu because it is not needed anymorePerttu Ahola2011-06-18
* | moved inventory menu definition of chest and furnace to content_nodemeta.{h,cpp}Perttu Ahola2011-06-18
* | Created and moved stuff to content_nodemeta.{h,cpp}Perttu Ahola2011-06-18
* | added in-game key shortcuts for toggling free_move and fast_move (default K a...Perttu Ahola2011-06-17
* | Moved some mapnode content stuff from mapnode.{h,cpp} and digging property st...Perttu Ahola2011-06-17
* | Added an experimental "far view" thing. Doesn't work exactly like it should a...Perttu Ahola2011-06-07
* | Reduced the CPU usage of the sent block selector algorithmPerttu Ahola2011-05-31
* | invert_mouse config optionPerttu Ahola2011-05-29
* | player passwords and privileges in world/auth.txtPerttu Ahola2011-05-29
|/
* when pause menu is activated, move mouse cursor on top of the disconnect butt...Perttu Ahola2011-05-24
* Added the ability to change your password (via pause menu)Ciaran Gultnieks2011-05-22
* fixed a small memory leak in game.cppPerttu Ahola2011-05-21
* All textures are are now searched first from the directory specified by the t...Perttu Ahola2011-05-21
* Passwords - password entry at main menu, stored and checked by serverCiaran Gultnieks2011-05-20
* Don't say 'Creating server and client' if the server is remote, so not being ...Ciaran Gultnieks2011-05-19
* fixed an "unused variable" warningPerttu Ahola2011-05-15
tory; // Actual inventory is backed up here when creative mode is used Inventory *inventory_backup; u16 hp; u16 peer_id; protected: IGameDef *m_gamedef; char m_name[PLAYERNAME_SIZE]; f32 m_pitch; f32 m_yaw; v3f m_speed; v3f m_position; public: }; #ifndef SERVER struct PlayerControl { PlayerControl() { up = false; down = false; left = false; right = false; jump = false; aux1 = false; sneak = false; pitch = 0; yaw = 0; } PlayerControl( bool a_up, bool a_down, bool a_left, bool a_right, bool a_jump, bool a_aux1, bool a_sneak, float a_pitch, float a_yaw ) { up = a_up; down = a_down; left = a_left; right = a_right; jump = a_jump; aux1 = a_aux1; sneak = a_sneak; pitch = a_pitch; yaw = a_yaw; } bool up; bool down; bool left; bool right; bool jump; bool aux1; bool sneak; float pitch; float yaw; }; class LocalPlayer : public Player { public: LocalPlayer(IGameDef *gamedef); virtual ~LocalPlayer(); bool isLocal() const { return true; } void move(f32 dtime, Map &map, f32 pos_max_d, core::list<CollisionInfo> *collision_info); void move(f32 dtime, Map &map, f32 pos_max_d); void applyControl(float dtime); PlayerControl control; private: // This is used for determining the sneaking range v3s16 m_sneak_node; // Whether the player is allowed to sneak bool m_sneak_node_exists; }; #endif // !SERVER #endif