aboutsummaryrefslogtreecommitdiff
path: root/src/nodemetadata.cpp
Commit message (Expand)AuthorAge
* Rename macros with two leading underscoresShadowNinja2015-10-14
* Use warningstream for log messages with WARNINGShadowNinja2015-10-14
* Various style cleanups + unused code removalest312015-09-19
* Change i++ to ++iDavid Jones2015-08-25
* Replace instances of std::map<std::string, std::string> with StringMapkwolekr2015-05-19
* Add core.find_nodes_with_meta() script APIkwolekr2015-05-05
* Fix NodeMetadataList loosing memory on deserialize due to invalid clear map c...sapier2015-01-17
* Use std::string::empty() instead of size() where applicableAnton2014-12-12
* serialize.h: use machine native byte swapping if available, fall-back to prev...Rafael Reilova2014-11-21
* Add a limit to node meta data resolving recursionShadowNinja2014-05-07
* Update Copyright YearsSfan52013-02-24
* Change Minetest-c55 to MinetestPilzAdam2013-02-24
* Properly and efficiently use split utility headersPerttu Ahola2012-06-17
* Switch the license to be LGPLv2/later, with small parts still remaining as GP...Perttu Ahola2012-06-05
* Strip unneeded variables from NodeMetadatadarkrose2012-06-03
* WIP node metadata, node timersKahrl2012-06-03
* Move NodeMetadata prototype containers to content_nodemeta.cpp to fix them no...Perttu Ahola2011-12-01
* Mode node definition loading from Lua (still not finished), fix metadata crea...Perttu Ahola2011-11-29
* Add names to NodeMetadataPerttu Ahola2011-11-29
* Create framework for getting rid of global definitions of node/tool/item/what...Perttu Ahola2011-11-29
* Switch more stuff to use the logging thing and fix segfault on player leave f...Perttu Ahola2011-10-16
* Created and moved stuff to content_nodemeta.{h,cpp}Perttu Ahola2011-06-18
* Moved some mapnode content stuff from mapnode.{h,cpp} and digging property st...Perttu Ahola2011-06-17
* hopefully fixed old furnaces taking ridiculous amounts of cpu and halting the...Perttu Ahola2011-06-16
* Reduced server CPU usage on NodeMetadata step()s. Also furnace now cooks whil...Perttu Ahola2011-05-31
* Some progress on transitioning from MapBlockObject to ActiveObject.Perttu Ahola2011-04-08
* fixed the bug of disabled removal of empty chestsPerttu Ahola2011-04-06
* Furnace is now usable. Added more tools.Perttu Ahola2011-04-05
* A more robust format for node metadataPerttu Ahola2011-04-05
* initial workings of the furnacePerttu Ahola2011-04-05
* changed node metadata format to better accomodate future needs and problemsPerttu Ahola2011-04-05
* Chests work now!Perttu Ahola2011-04-04
* initial chest metadataPerttu Ahola2011-04-04
* forgot some filesPerttu Ahola2011-04-04
"hl opt">; class ITextureSource; class Inventory; class InventoryList; class LocalPlayer; struct ItemStack; class Hud { public: video::IVideoDriver *driver; scene::ISceneManager* smgr; gui::IGUIEnvironment *guienv; IGameDef *gamedef; LocalPlayer *player; Inventory *inventory; ITextureSource *tsrc; video::SColor crosshair_argb; video::SColor selectionbox_argb; bool use_crosshair_image; std::string hotbar_image; bool use_hotbar_image; std::string hotbar_selected_image; bool use_hotbar_selected_image; v3s16 camera_offset; Hud(video::IVideoDriver *driver,scene::ISceneManager* smgr, gui::IGUIEnvironment* guienv, IGameDef *gamedef, LocalPlayer *player, Inventory *inventory); void drawHotbar(u16 playeritem); void resizeHotbar(); void drawCrosshair(); void drawSelectionBoxes(std::vector<aabb3f> &hilightboxes); void drawLuaElements(v3s16 camera_offset); private: void drawStatbar(v2s32 pos, u16 corner, u16 drawdir, std::string texture, s32 count, v2s32 offset, v2s32 size=v2s32()); void drawItems(v2s32 upperleftpos, s32 itemcount, s32 offset, InventoryList *mainlist, u16 selectitem, u16 direction); void drawItem(const ItemStack &item, const core::rect<s32>& rect, bool selected); v2u32 m_screensize; v2s32 m_displaycenter; s32 m_hotbar_imagesize; s32 m_padding; video::SColor hbar_colors[4]; }; void drawItemStack(video::IVideoDriver *driver, gui::IGUIFont *font, const ItemStack &item, const core::rect<s32> &rect, const core::rect<s32> *clip, IGameDef *gamedef); #endif #endif