aboutsummaryrefslogtreecommitdiff
path: root/src/script/cpp_api
Commit message (Expand)AuthorAge
...
* Add on_secondary_use when right clicking an item in the airAlex Ford2015-12-02
* Add callback parameter for core.emerge_area()kwolekr2015-11-02
* Fix Lua scripting synchronizationkwolekr2015-11-01
* Fix server crashing on Lua errorsShadowNinja2015-10-31
* Remove some abort() callsest312015-10-26
* ABMs: Make catch-up behaviour optionalparamat2015-10-18
* Add new ContentParamType2 "CPT2_DEGROTATE"est312015-10-04
* Push error handler afresh each time lua_pcall is usedKahrl2015-08-27
* Use numeric indices and raw table access with LUA_REGISTRYINDEXKahrl2015-08-27
* Clean up threadingShadowNinja2015-08-23
* SAPI: Track last executed mod and include in error messageskwolekr2015-08-12
* Display Lua memory usage at the time of Out-of-Memory errorkwolekr2015-08-10
* Improve Script CPP API diagnosticskwolekr2015-08-05
* Optional reconnect functionalityest312015-07-23
* Fix code style from recent commits and add misc. optimizationskwolekr2015-07-02
* Add Lua errors to error dialogrubenwardy2015-06-29
* Add minetest.register_on_player_hpchangeTeTpaAka2015-06-13
* dofile error reporting for syntax errorsest312015-06-12
* Fix uninitialized variable errorest312015-06-02
* Fix Windows build, clean up included headersSmallJoker2015-05-22
* Replace instances of std::map<std::string, std::string> with StringMapkwolekr2015-05-19
* Add mod securityShadowNinja2015-05-16
* Add minetest.register_on_punchplayerBrandon2015-05-15
* Clean up and tweak build systemShadowNinja2015-03-27
* For usages of assert() that are meant to persist in Release builds (when NDEB...Craig Robbins2015-03-07
* Performance fixes.onkrot2015-01-13
* Expose mapgen parameters on scripting initkwolekr2014-12-29
* Expose mapgen chunksize in on_mapgen_init callbackskwolekr2014-12-14
* Simplify loading of Android version of menuShadowNinja2014-11-20
* Add meshnode drawtype.RealBadAngel2014-10-18
* Fix object reference pushing functions when called from coroutinesShadowNinja2014-10-07
* Add optional framed glasslike drawtypeBlockMen2014-10-02
* Add firelike drawtypeTriBlade92014-09-21
* Don't call a player event without having player to do a event forsapier2014-08-21
* Fix over-poping and only push the core onceShadowNinja2014-05-30
* Use "core" namespace internallyShadowNinja2014-05-08
* Organize builtin into subdirectoriesShadowNinja2014-05-07
* Fix heart + bubble bar size on different texture packssapier2014-05-07
* Fix code style of async APIShadowNinja2014-04-27
* Remove dependency on marshal and many other async changesShadowNinja2014-04-27
* Only push the Lua error handler onceShadowNinja2014-04-27
* Fix all warnings reported by clangSfan52014-04-15
* Add more informative error messages for inventory and item method errorsShadowNinja2014-03-15
* Remove lua_State parameter from LuaError::LuaErrorShadowNinja2014-03-15
* Revert "Make sure we get a stacktrace for as many lua errors as possible"ShadowNinja2014-03-15
* Make sure we get a stacktrace for as many lua errors as possibleSfan52014-03-15
* Pass arguments by referenceSelat2014-03-12
* Correct misleading detached inventory error messageCiaran Gultnieks2014-03-09
* Make flag strings clear specified flag with 'no' prefixkwolekr2014-02-08
* Fix crash when a error occurs in a globalstep callbackShadowNinja2014-02-03
tring &error_message); // Step the camera: updates the viewing range and view bobbing. void step(f32 dtime); // Update the camera from the local player's position. // busytime is used to adjust the viewing range. void update(LocalPlayer* player, f32 frametime, f32 busytime, f32 tool_reload_ratio, ClientEnvironment &c_env); // Render distance feedback loop void updateViewingRange(f32 frametime_in, f32 busytime_in); // Start digging animation // Pass 0 for left click, 1 for right click void setDigging(s32 button); // Replace the wielded item mesh void wield(const ItemStack &item); // Draw the wielded tool. // This has to happen *after* the main scene is drawn. // Warning: This clears the Z buffer. void drawWieldedTool(irr::core::matrix4* translation=NULL); // Toggle the current camera mode void toggleCameraMode() { if (m_camera_mode == CAMERA_MODE_FIRST) m_camera_mode = CAMERA_MODE_THIRD; else if (m_camera_mode == CAMERA_MODE_THIRD) m_camera_mode = CAMERA_MODE_THIRD_FRONT; else m_camera_mode = CAMERA_MODE_FIRST; } //read the current camera mode inline CameraMode getCameraMode() { return m_camera_mode; } private: // Nodes scene::ISceneNode* m_playernode; scene::ISceneNode* m_headnode; scene::ICameraSceneNode* m_cameranode; scene::ISceneManager* m_wieldmgr; WieldMeshSceneNode* m_wieldnode; // draw control MapDrawControl& m_draw_control; IGameDef *m_gamedef; // Absolute camera position v3f m_camera_position; // Absolute camera direction v3f m_camera_direction; // Camera offset v3s16 m_camera_offset; // Field of view and aspect ratio stuff f32 m_aspect; f32 m_fov_x; f32 m_fov_y; // Stuff for viewing range calculations f32 m_added_busytime; s16 m_added_frames; f32 m_range_old; f32 m_busytime_old; f32 m_frametime_counter; f32 m_time_per_range; // View bobbing animation frame (0 <= m_view_bobbing_anim < 1) f32 m_view_bobbing_anim; // If 0, view bobbing is off (e.g. player is standing). // If 1, view bobbing is on (player is walking). // If 2, view bobbing is getting switched off. s32 m_view_bobbing_state; // Speed of view bobbing animation f32 m_view_bobbing_speed; // Fall view bobbing f32 m_view_bobbing_fall; // Digging animation frame (0 <= m_digging_anim < 1) f32 m_digging_anim; // If -1, no digging animation // If 0, left-click digging animation // If 1, right-click digging animation s32 m_digging_button; // Animation when changing wielded item f32 m_wield_change_timer; ItemStack m_wield_item_next; CameraMode m_camera_mode; f32 m_cache_fall_bobbing_amount; f32 m_cache_view_bobbing_amount; f32 m_cache_wanted_fps; f32 m_cache_fov; bool m_cache_view_bobbing; }; #endif