1
0
cuberite-2a/source
madmaxoft@gmail.com cf87169737 Refactored cInventory to use cItemGrid for the actual Storage
This makes the API more orthogonal and is easier to use in the plugins. Also changes in the inventory are now propagated to the needed places (armor updates to BroadcastEntityEquipment etc.) even when the inventory is changed by a plugin.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1503 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-24 07:30:39 +00:00
..
Blocks Refactored cInventory to use cItemGrid for the actual Storage 2013-05-24 07:30:39 +00:00
Generating DistortedHeightmap: Rewritten to use the optimized cPerlinNoise and linear upscaling 2013-05-16 13:14:25 +00:00
Items Refactored cInventory to use cItemGrid for the actual Storage 2013-05-24 07:30:39 +00:00
LuaExpat Added Expat and LuaExpat, XML parsing now available in the API. 2013-04-09 13:43:24 +00:00
md5 Fixed *nix compilation for md5.cpp 2012-07-29 12:38:34 +00:00
Mobs Moved 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. 2013-04-22 07:18:03 +00:00
OSSupport File: Added file rename and deletion functions 2013-05-01 16:59:36 +00:00
Protocol Refactored cInventory to use cItemGrid for the actual Storage 2013-05-24 07:30:39 +00:00
Simulator Fixed entity chunking. 2013-05-19 11:49:01 +00:00
SQLite Added SQLite and LuaSQLite, Lua plugins can now use SQLite. 2013-04-07 19:28:32 +00:00
squirrelbindings Merged branch "branches/hooks" into "trunk". 2013-01-12 04:46:01 +00:00
UI Refactored cInventory to use cItemGrid for the actual Storage 2013-05-24 07:30:39 +00:00
WorldStorage Lighting: Fixed underwater lighting (FS #369) 2013-05-05 14:48:18 +00:00
AllToLua.bat Nightbuild: bindings are automatically update before the build 2012-06-07 20:30:29 +00:00
AllToLua.pkg Added cItemGrid to represent an XY grid of items; converted chests to use cItemGrid. 2013-04-10 19:52:03 +00:00
AllToLua.sh Updated zlib, added chat formatting, fixed upside down stairs and slabs, fixed makefiles, hopefully updated vc project files 2012-06-03 23:35:17 +00:00
Authenticator.cpp Source files cleanup: The rest of the files renamed. 2012-09-23 22:09:57 +00:00
Authenticator.h Source files cleanup: The rest of the files renamed. 2012-09-23 22:09:57 +00:00
Bindings.cpp Refactored cInventory to use cItemGrid for the actual Storage 2013-05-24 07:30:39 +00:00
Bindings.h Refactored cInventory to use cItemGrid for the actual Storage 2013-05-24 07:30:39 +00:00
BlockArea.cpp BlockArea: Added runtime check for coords in Debug mode 2013-03-31 18:00:33 +00:00
BlockArea.h cBlockArea: Fixed type / meta copypasta errors in mirroring and rotation code 2013-03-26 19:27:14 +00:00
BlockEntity.h Mineshafts: Added random loot to generated chests and fixed chest direction 2013-04-06 21:21:57 +00:00
BlockID.cpp Lighting: Fixed underwater lighting (FS #369) 2013-05-05 14:48:18 +00:00
BlockID.h Inventory changes made by plugins are now propagated to the client 2013-05-19 18:41:16 +00:00
ByteBuffer.cpp ProtoProxy: Fixed 1.4.6 compatibility with vehicles, logging for entity metadata. 2012-12-27 07:11:37 +00:00
ByteBuffer.h More ByteBuffer checks: Is it used from a single thread only? 2012-11-22 20:42:33 +00:00
ChatColor.cpp Source files cleanup: The rest of the files renamed. 2012-09-23 22:09:57 +00:00
ChatColor.h Source files cleanup: The rest of the files renamed. 2012-09-23 22:09:57 +00:00
ChestEntity.cpp Rewritten entities so that they are owned by individual chunks and ticked within their chunk's Tick() 2013-04-13 21:02:10 +00:00
ChestEntity.h ItemGrid: Renamed all Item to Slot - better and consistent naming 2013-04-10 21:03:15 +00:00
Chunk.cpp Fixed entity chunking. 2013-05-19 11:49:01 +00:00
Chunk.h Rewritten entities so that they are owned by individual chunks and ticked within their chunk's Tick() 2013-04-13 21:02:10 +00:00
Chunk.inl.h Source files cleanup: The rest of the files renamed. 2012-09-23 22:09:57 +00:00
ChunkDef.h ChunkDesc: Added heightmap verification (DEBUG-only), not used yet 2013-05-05 11:42:09 +00:00
ChunkMap.cpp Fixed cWorld:ForEachEntity() 2013-05-19 15:44:21 +00:00
ChunkMap.h Explosion: Switched from a cube to a sphere. Implemented using cBlockArea and moved block changing code to ChunkMap 2013-05-04 06:25:58 +00:00
ChunkSender.cpp Rewritten entities so that they are owned by individual chunks and ticked within their chunk's Tick() 2013-04-13 21:02:10 +00:00
ChunkSender.h Rewritten entities so that they are owned by individual chunks and ticked within their chunk's Tick() 2013-04-13 21:02:10 +00:00
ClientHandle.cpp Refactored cInventory to use cItemGrid for the actual Storage 2013-05-24 07:30:39 +00:00
ClientHandle.h Refactored window clicking code to use different click actions 2013-05-08 09:45:07 +00:00
CraftingRecipes.cpp Replaced MIN / MAX with std::min and std::max 2013-05-07 19:59:17 +00:00
CraftingRecipes.h Source files cleanup: The rest of the files renamed. 2012-09-23 22:09:57 +00:00
Cuboid.cpp cCuboid: Added the IsCompletelyInside() function 2013-03-31 18:22:55 +00:00
Cuboid.h cCuboid: Added the IsCompletelyInside() function 2013-03-31 18:22:55 +00:00
Defines.h Added ItemCategory::IsArmor() 2013-05-24 07:20:16 +00:00
DispenserEntity.cpp Dispensers rewritten to use ItemGrid 2013-04-10 21:40:30 +00:00
DispenserEntity.h Dispensers rewritten to use ItemGrid 2013-04-10 21:40:30 +00:00
Doors.h Pickups are now being saved into Anvil. 2013-03-09 14:35:43 +00:00
Endianness.h Attempt to bring sanity to newlines across systems. 2012-06-14 13:06:06 +00:00
Entity.cpp Fixed linking error from rev 1498 2013-05-21 12:58:21 +00:00
Entity.h Added basic functions for width and height for Entities 2013-05-21 05:49:56 +00:00
FallingBlock.cpp Fixed entity chunking. 2013-05-19 11:49:01 +00:00
FallingBlock.h Fixed entity chunking. 2013-05-19 11:49:01 +00:00
FurnaceEntity.cpp Proper fix for FS #347. Also unification of ticking block entities. 2013-04-01 20:56:25 +00:00
FurnaceEntity.h Proper fix for FS #347. Also unification of ticking block entities. 2013-04-01 20:56:25 +00:00
FurnaceRecipe.cpp Merged branch "branches/hooks" into "trunk". 2013-01-12 04:46:01 +00:00
FurnaceRecipe.h Source files cleanup: The rest of the files renamed. 2012-09-23 22:09:57 +00:00
Globals.cpp Attempt to bring sanity to newlines across systems. 2012-06-14 13:06:06 +00:00
Globals.h IPv6: Windows XP doesn't have the inet_pton() function, resorting to custom-formatting the address 2013-03-05 20:46:40 +00:00
Group.cpp Source files cleanup: The rest of the files renamed. 2012-09-23 22:09:57 +00:00
Group.h Merged branch "branches/hooks" into "trunk". 2013-01-12 04:46:01 +00:00
GroupManager.cpp Merged branch "branches/hooks" into "trunk". 2013-01-12 04:46:01 +00:00
GroupManager.h Merged branch "branches/hooks" into "trunk". 2013-01-12 04:46:01 +00:00
Inventory.cpp Refactored cInventory to use cItemGrid for the actual Storage 2013-05-24 07:30:39 +00:00
Inventory.h Refactored cInventory to use cItemGrid for the actual Storage 2013-05-24 07:30:39 +00:00
Item.cpp Refactored cInventory to use cItemGrid for the actual Storage 2013-05-24 07:30:39 +00:00
Item.h Refactored cInventory to use cItemGrid for the actual Storage 2013-05-24 07:30:39 +00:00
ItemGrid.cpp Refactored cInventory to use cItemGrid for the actual Storage 2013-05-24 07:30:39 +00:00
ItemGrid.h Refactored cInventory to use cItemGrid for the actual Storage 2013-05-24 07:30:39 +00:00
JukeboxEntity.cpp Refactored cInventory to use cItemGrid for the actual Storage 2013-05-24 07:30:39 +00:00
JukeboxEntity.h Added jukeboxes (patch contributed by Luksor) 2012-10-21 07:46:28 +00:00
Ladder.h Merged branch "branches/hooks" into "trunk". 2013-01-12 04:46:01 +00:00
LeakFinder.cpp Fixed underflow issue in LeakFinder.cpp 2013-03-25 00:07:50 +00:00
LeakFinder.h Added auto-kill-with-dump to LeakFinder if the allocated memory grows over 1 GiB. 2013-03-23 19:04:39 +00:00
LightingThread.cpp Fixed a few out-of-bounds reads 2013-05-09 19:06:16 +00:00
LightingThread.h Fixed crashes caused LightingThread overwriting memory where it shouldn't (yay valgrind!) 2012-11-16 09:40:15 +00:00
LinearInterpolation.cpp Added generic LinearInterpolation in 1D, 2D and 3D. 2013-05-11 21:08:20 +00:00
LinearInterpolation.h Added generic LinearInterpolation in 1D, 2D and 3D. 2013-05-11 21:08:20 +00:00
LinearUpscale.h Fixed 2D linear upscale to compile on Linux, added a test for it. 2013-05-15 15:55:04 +00:00
Log.cpp BiomeVisualiser: initial import 2013-02-03 20:37:13 +00:00
Log.h Merged branch "branches/hooks" into "trunk". 2013-01-12 04:46:01 +00:00
lua5.1.dll Added m_IP to player class and binding to get IP for LUA. (Probably should use m_pState) 2011-11-09 22:17:30 +00:00
LuaFunctions.h Source files cleanup: The rest of the files renamed. 2012-09-23 22:09:57 +00:00
main.cpp Use leakfinder in debug builds to dump all currently used memory via the "dumpmem" console command. 2012-10-19 22:09:33 +00:00
ManualBindings.cpp Fixed gcc build 2013-04-10 21:25:26 +00:00
ManualBindings.h Attempt to bring sanity to newlines across systems. 2012-06-14 13:06:06 +00:00
Matrix4f.cpp Attempt to bring sanity to newlines across systems. 2012-06-14 13:06:06 +00:00
Matrix4f.h Pickups are now being saved into Anvil. 2013-03-09 14:35:43 +00:00
MCLogger.cpp BiomeVisualiser: initial import 2013-02-03 20:37:13 +00:00
MCLogger.h BiomeVisualiser: initial import 2013-02-03 20:37:13 +00:00
MemoryLeak.h Attempt to bring sanity to newlines across systems. 2012-06-14 13:06:06 +00:00
MersenneTwister.h Attempt to bring sanity to newlines across systems. 2012-06-14 13:06:06 +00:00
Minecart.cpp Rewritten entities so that they are owned by individual chunks and ticked within their chunk's Tick() 2013-04-13 21:02:10 +00:00
Minecart.h Rewritten entities so that they are owned by individual chunks and ticked within their chunk's Tick() 2013-04-13 21:02:10 +00:00
MonsterConfig.cpp Reduced most mobs' constructors to oneliners by passing parameters to superclasses 2012-12-22 09:39:13 +00:00
MonsterConfig.h Reduced most mobs' constructors to oneliners by passing parameters to superclasses 2012-12-22 09:39:13 +00:00
Noise.cpp Moved noise debugging into the Noise.* files 2013-05-15 17:09:38 +00:00
Noise.h Moved noise debugging into the Noise.* files 2013-05-15 17:09:38 +00:00
NoteEntity.cpp Source files cleanup: The rest of the files renamed. 2012-09-23 22:09:57 +00:00
NoteEntity.h Source files cleanup: The rest of the files renamed. 2012-09-23 22:09:57 +00:00
Pawn.cpp Rewritten entities so that they are owned by individual chunks and ticked within their chunk's Tick() 2013-04-13 21:02:10 +00:00
Pawn.h Added dtAdmin damage type for use in plugins 2013-04-28 18:40:26 +00:00
Pickup.cpp Refactored cInventory to use cItemGrid for the actual Storage 2013-05-24 07:30:39 +00:00
Pickup.h Moved 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. 2013-04-22 07:18:03 +00:00
Piston.cpp Added the HOOK_BLOCK_TO_PICKUPS hook that fires when a block is dug up and should be converted to pickups. 2013-01-27 02:00:33 +00:00
Piston.h Pickups are now being saved into Anvil. 2013-03-09 14:35:43 +00:00
Player.cpp Refactored cInventory to use cItemGrid for the actual Storage 2013-05-24 07:30:39 +00:00
Player.h Refactored cInventory to use cItemGrid for the actual Storage 2013-05-24 07:30:39 +00:00
Plugin_NewLua.cpp Added Expat and LuaExpat, XML parsing now available in the API. 2013-04-09 13:43:24 +00:00
Plugin_NewLua.h Added HOOK_EXECUTE_COMMAND for intercepting executed commands and console commands. 2013-02-21 13:47:01 +00:00
Plugin_Squirrel.cpp Merged the usable portion of the "gens" branch. 2013-01-25 10:12:29 +00:00
Plugin_Squirrel.h Merged the usable portion of the "gens" branch. 2013-01-25 10:12:29 +00:00
Plugin.cpp Added HOOK_EXECUTE_COMMAND for intercepting executed commands and console commands. 2013-02-21 13:47:01 +00:00
Plugin.h Added HOOK_EXECUTE_COMMAND for intercepting executed commands and console commands. 2013-02-21 13:47:01 +00:00
PluginManager.cpp Fixed a crash in the plugin reload code. 2013-04-27 14:08:23 +00:00
PluginManager.h Added HOOK_EXECUTE_COMMAND for intercepting executed commands and console commands. 2013-02-21 13:47:01 +00:00
ProbabDistrib.cpp ProbabDistrib: fixed definition string parsing with nonzero start 2013-03-17 13:24:57 +00:00
ProbabDistrib.h Added water and lava springs. 2013-03-14 09:52:57 +00:00
ReferenceManager.cpp Source files cleanup: The rest of the files renamed. 2012-09-23 22:09:57 +00:00
ReferenceManager.h Source files cleanup: The rest of the files renamed. 2012-09-23 22:09:57 +00:00
Root.cpp Fixed server stopping after #363 fix 2013-04-27 21:14:31 +00:00
Root.h Fixed a deadlock 2013-04-27 21:05:34 +00:00
Server.cpp Server: removed the artificial cap on reported tick duration 2013-04-03 16:18:51 +00:00
Server.h Made ListenThread an OSSupport part, as it's generic enough 2013-03-05 20:47:29 +00:00
Sign.h Pickups are now being saved into Anvil. 2013-03-09 14:35:43 +00:00
SignEntity.cpp Mineshafts: Added random loot to generated chests and fixed chest direction 2013-04-06 21:21:57 +00:00
SignEntity.h Mineshafts: Added random loot to generated chests and fixed chest direction 2013-04-06 21:21:57 +00:00
SquirrelCommandBinder.cpp Removed the SquirrelVM. 2012-11-08 19:09:35 +00:00
SquirrelCommandBinder.h Removed the SquirrelVM. 2012-11-08 19:09:35 +00:00
StackWalker.cpp Attempt to bring sanity to newlines across systems. 2012-06-14 13:06:06 +00:00
StackWalker.h Attempt to bring sanity to newlines across systems. 2012-06-14 13:06:06 +00:00
Stairs.h Pickups are now being saved into Anvil. 2013-03-09 14:35:43 +00:00
StringCompression.cpp Attempt to bring sanity to newlines across systems. 2012-06-14 13:06:06 +00:00
StringCompression.h Attempt to bring sanity to newlines across systems. 2012-06-14 13:06:06 +00:00
StringMap.cpp Source files cleanup: The rest of the files renamed. 2012-09-23 22:09:57 +00:00
StringMap.h Merged branch "branches/hooks" into "trunk". 2013-01-12 04:46:01 +00:00
StringUtils.cpp StringUtils: Fixed StringSplit to work with multiple delimiters 2013-05-01 17:02:09 +00:00
StringUtils.h StringUtils: Fixed StringSplit to work with multiple delimiters 2013-05-01 17:02:09 +00:00
TNTEntity.cpp TNT: Added physics to TNT entity 2013-04-28 20:22:15 +00:00
TNTEntity.h Initial implementation of explosions and TNT block 2013-04-18 02:42:45 +00:00
tolua_base.h Attempt to bring sanity to newlines across systems. 2012-06-14 13:06:06 +00:00
tolua++.exe Fixed tolua++ sources to consider AString a builtin string type. Fixed tolua++ VC projects for compilation with local Lua. 2012-06-04 14:58:17 +00:00
tolua++.h MCServer c++ source files 2011-10-03 18:41:19 +00:00
Torch.h Merged branch "branches/hooks" into "trunk". 2013-01-12 04:46:01 +00:00
Tracer.cpp Tracer: removed the "start and end in the same block" warning, it is a normal condition. 2013-04-06 16:12:52 +00:00
Tracer.h Merged branch "branches/hooks" into "trunk". 2013-01-12 04:46:01 +00:00
Vector3d.cpp Attempt to bring sanity to newlines across systems. 2012-06-14 13:06:06 +00:00
Vector3d.h Merged branch "branches/hooks" into "trunk". 2013-01-12 04:46:01 +00:00
Vector3f.cpp Attempt to bring sanity to newlines across systems. 2012-06-14 13:06:06 +00:00
Vector3f.h Merged branch "branches/hooks" into "trunk". 2013-01-12 04:46:01 +00:00
Vector3i.cpp Attempt to bring sanity to newlines across systems. 2012-06-14 13:06:06 +00:00
Vector3i.h Fixed Linux compilation, slight code cleanup 2013-04-19 08:21:39 +00:00
Vine.h Huge performance boost in blockhandlers, they have direct access to chunk data when blockchecking. 2013-03-15 20:18:11 +00:00
virtual_method_hooks.lua Modified ToLua additional script to allow multi-usertype virtual functions 2012-06-13 17:19:13 +00:00
WebAdmin.cpp Added new hooks: OnChunkAvailable(), OnChunkUnloaded() and OnChunkUnloading(). Modified OnChunkGenerated() signature. 2013-02-05 19:57:22 +00:00
WebAdmin.h Merged branch "branches/hooks" into "trunk". 2013-01-12 04:46:01 +00:00
WebPlugin.cpp Merged branch "branches/hooks" into "trunk". 2013-01-12 04:46:01 +00:00
WebPlugin.h Merged branch "branches/hooks" into "trunk". 2013-01-12 04:46:01 +00:00
World.cpp Temporarily set all pickups to spawn in the middle of the block from which they fall. 2013-05-12 21:00:21 +00:00
World.h Tiny formatting fix of rev 1463 2013-05-09 19:09:27 +00:00
XMLParser.h Added Expat and LuaExpat, XML parsing now available in the API. 2013-04-09 13:43:24 +00:00