summaryrefslogtreecommitdiffstats
path: root/source/Chunk.h (unfollow)
Commit message (Expand)AuthorFilesLines
2013-08-19Removed an unused CriticalSection from cChunk.madmaxoft1-1/+0
2013-08-18Implemented cWorld:QueueSetBlock(), as requested for delayed blocksetting.madmaxoft1-0/+24
2013-08-18Removed SetServerBlock griefing.madmaxoft1-2/+0
2013-08-18Properly fixed piston non-animationTiger Wang1-0/+2
2013-07-07Improved function names for protocol packet sending; alpha-sorted the function listsmadmaxoft@gmail.com1-14/+16
2013-06-13Added hopper entity, it can suck items out of chests, dispensers, droppers and other hopppers above it.madmaxoft@gmail.com1-2/+3
2013-06-12Added cWorld::SetSignLines(), re-exported to Lua manually to avoid ghost return valuesmadmaxoft@gmail.com1-1/+3
2013-06-04Implemented proper player crouching.madmaxoft@gmail.com1-1/+1
2013-05-28cChunk: Added the GetRelNeighborChunkAdjustCoords() functionmadmaxoft@gmail.com1-0/+7
2013-05-28Chunk / ChunkMap: Added support for unbounded querying blocktype-only or blockmeta-onlymadmaxoft@gmail.com1-0/+6
2013-05-26Implemented droppersmadmaxoft@gmail.com1-0/+12
2013-05-25Fixed the cWorld:DoWithChestAt(), DoWithDispenserAt() and DoWithFurnaceAt() callbacks binding.madmaxoft@gmail.com1-2/+2
2013-04-13Rewritten entities so that they are owned by individual chunks and ticked within their chunk's Tick()madmaxoft@gmail.com1-5/+12
2013-04-01Proper fix for FS #347. Also unification of ticking block entities.madmaxoft@gmail.com1-1/+1
2013-03-22Fixed block update queueing and water meta change not propagated to clients.madmaxoft@gmail.com1-0/+3
2013-03-18Added support for the packet #28 (0x1C): ENTITY_VELOCITYkeyboard.osh@gmail.com1-0/+1
2013-03-15Huge performance boost in blockhandlers, they have direct access to chunk data when blockchecking.madmaxoft@gmail.com1-14/+15
2013-03-14Small performance improvements in fluid simulator.madmaxoft@gmail.com1-1/+1
2013-03-03Player can sit in minecarts (but not move them yet)madmaxoft@gmail.com1-0/+1
2013-03-03Simulators are woken up upon chunk loadmadmaxoft@gmail.com1-0/+4
2013-03-02Rewritten SandSimulator to use direct chunk access; and sand falling on torches now creates a pickup.madmaxoft@gmail.com1-0/+3
2013-03-02Floody fluid simulator has been converted to use direct chunk accessmadmaxoft@gmail.com1-1/+7
2013-03-01New fire simulator, fully rewritten to the new scheme of things, directly accessing chunk data.madmaxoft@gmail.com1-15/+24
2013-02-28Simulators now have direct access to the cChunk object in the WakeUp() callmadmaxoft@gmail.com1-4/+18
2013-01-12Merged branch "branches/hooks" into "trunk".madmaxoft@gmail.com1-2/+0
2012-12-27Fixed slab usage in creative modeluksor111@gmail.com1-2/+2
2012-12-26Dispensers can dispense items and liquids nowluksor111@gmail.com1-0/+6
2012-12-19Added dispensers (they can't dispense items yet)luksor111@gmail.com1-4/+6
2012-12-14cChunk now tracks its neighbors as direct pointers; used in UnboundedRelGetBlock et al.madmaxoft@gmail.com1-4/+13
2012-11-11Removed an unused obsolete function chain - cWorld::GetChunkBlockData()madmaxoft@gmail.com1-3/+0
2012-10-21Top blocks are now snowed over, either normally, or in deep snow (patch contributed by funmaker, Luksor and Sebi)madmaxoft@gmail.com1-2/+3
2012-10-21Added jukeboxes (patch contributed by Luksor)madmaxoft@gmail.com1-19/+20
2012-10-20Made cWorld's block query functions more orthogonal, added GetBlockInfo() returning all info on a block.madmaxoft@gmail.com1-3/+4
2012-10-14Floody fluid simulator now dries up correctly, too.madmaxoft@gmail.com1-0/+4
2012-10-06BlockArea writing support (BlockTypes with BlockMeta only)madmaxoft@gmail.com1-0/+4
2012-10-03Moved blockticking into blockhandler classes.madmaxoft@gmail.com1-4/+3
2012-09-29Beds can be slept in now (it doesn't change the time though)faketruth1-0/+1
2012-09-25Added the block dig animation packet (patch contributed by l0udPL)madmaxoft@gmail.com1-0/+1
2012-09-24Source files cleanup: The rest of the files renamed.madmaxoft@gmail.com1-2/+2
2012-09-11Merged in a patch for sounds by l0udPLmadmaxoft@gmail.com1-0/+1
2012-08-31Progress on the 1.3.2 protocol.madmaxoft@gmail.com1-1/+1
2012-08-29Gotten completely rid of all cPackets. The cProtocol125 class now does all the parsing and writing by itself.madmaxoft@gmail.com1-7/+2
2012-08-26git-svn-id: http://mc-server.googlecode.com/svn/trunk@795 0a769ca7-a7f5-676a-18bf-c427514a06d6madmaxoft@gmail.com1-0/+2
2012-08-25cWorld doesn't use cPackets.madmaxoft@gmail.com1-0/+1
2012-08-25Removed cPackets from cChunk.madmaxoft@gmail.com1-4/+11
2012-08-24cPickup doesn't use cPackets.madmaxoft@gmail.com1-0/+2
2012-08-24Monster classes don't use cPackets. Chat messages are sent / broadcast without cPackets. BlockEntities don't use cPackets.madmaxoft@gmail.com1-0/+4
2012-08-19Window, Chest, Furnace and Pawn are not using cPackets at allmadmaxoft@gmail.com1-1/+4
2012-08-19Almost all packets' handling is now rewritten not to use cPacket descendants elsewhere than in cClientHandle.madmaxoft@gmail.com1-0/+6
2012-08-19Another handful of packets rewritten.madmaxoft@gmail.com1-0/+3
2012-07-15A new Block handling system :olapayo94@gmail.com1-1/+0
2012-07-02Leaves decay properly - if they are not connected to a logmadmaxoft@gmail.com1-1/+5
2012-06-17Removed the deprecated GetBlockEntity(), added several enumerators to replace it.madmaxoft@gmail.com1-1/+20
2012-06-17Fixed leaves blockticking - must touch neighboring chunks, too, instead of self at wrong places.madmaxoft@gmail.com1-0/+1
2012-06-16Exported cWorld::ForEachEntity and cWorld::ForEachEntityInChunk; no idea if they actually workmadmaxoft@gmail.com1-1/+4
2012-06-14Attempt to bring sanity to newlines across systems.cedeel@gmail.com1-271/+271
2012-06-09Cacti grow by themselves and by bonemealmadmaxoft@gmail.com1-0/+3
2012-06-08Sugarcane grows and can be grown using bonemeal.madmaxoft@gmail.com1-0/+3
2012-06-07Bonemeal works on crops, melons, pumpkins, saplings and grass. Plant growing has been refactored into separate functions callable from Lua, too.madmaxoft@gmail.com1-0/+3
2012-06-07BlockChecking split into a separate functionmadmaxoft@gmail.com1-1/+4
2012-06-07Repeaters' delays can be set by rclkmadmaxoft@gmail.com1-0/+1
2012-06-06Grass spreads to adjacent dirt blocks. Doesn't check dest light yet.madmaxoft@gmail.com1-0/+1
2012-05-30Added support for SetNextBlockTick() function callable from Luamadmaxoft@gmail.com1-0/+8
2012-05-30Fixed blocktick distributionmadmaxoft@gmail.com1-12/+1
2012-05-30Farmland gets hydrated and dehydrated. Fixed an off-by-one error in neighbor-chunk manipulation.madmaxoft@gmail.com1-0/+1
2012-05-29Added code for the chunks to manipulate their neighbors while ticking. Also added some basic farming support - melon and pumpkin growing code. Untested and untestable so far, will test and fix later.madmaxoft@gmail.com1-8/+14
2012-05-25Merged the composable_generator branch into the trunkmadmaxoft@gmail.com1-24/+35
2012-04-10Added the "/regeneratechunk" command that regenerates either current chunk or a chunk specified with x, z parameters. TODO: permissions - we don't want guests erasing our chunks!madmaxoft@gmail.com1-2/+3
2012-03-16That didn't work.. I forgot some cChunk functions were changed. Now it should compile againfaketruth1-0/+3
2012-03-14Unified the chunk data to use the BLOCKDATA datatype.madmaxoft@gmail.com1-1/+1
2012-03-14Split chunk data into separate arrays; decoupled most sources from cChunk.h dependencymadmaxoft@gmail.com1-168/+47
2012-03-13Small optimizations in the SetNibble() and GetNibble() functions; removed unused lighting functions from cChunkmadmaxoft@gmail.com1-3/+1
2012-03-10Completely integrated the new axis ordering. Will update worlds accordinglyfaketruth1-1/+1
2012-03-10Was using "#else if" which is not valid apparently, now using "#elif"faketruth1-2/+2
2012-03-10You can change axis ordering by setting AXIS_ORDER to AXIS_ORDER_XZY in cChunk.h !THIS WILL SCREW UP YOUR WORLDS THOUGH!faketruth1-13/+22
2012-03-10Using more of the index functions in cChunk, so it should be easy enough to flip the axis ordering nowfaketruth1-4/+31
2012-03-09cClientHandles have a unique ID now to distinguish themfaketruth1-1/+1
2012-03-05ChunkSender: Chunks are now compressed and sent to clients from a separate threads, proper passive waiting between threads. Not much tested, just appears to work :)madmaxoft@gmail.com1-6/+9
2012-03-04Should have complete support for 256 blocks high worlds. Old save files are converted to new ones at load.faketruth1-1/+1
2012-03-04The world can now truly be made higher by incrementing cChunk::c_ChunkHeight to 256. !!HOWEVER THIS WILL DESTROY YOUR SAVED WORLD!!faketruth1-1/+1
2012-03-04Changed signed char to unsigned char in block packets, so we can receive height up to 255faketruth1-1/+2
2012-03-03Got rid of some hardcoded numbers, now using hardcoded variables! woofaketruth1-4/+6
2012-03-01New redstone simulator. Should work without crashes!faketruth1-0/+1
2012-02-28Server uses ~40% less CPU nowfaketruth1-1/+1
2012-02-28Chunk now has an indicator of load failure; Chunk generator uses cChunkStaymadmaxoft@gmail.com1-0/+3
2012-02-26New cChunkStay class for temporarily keeping chunks loaded even when then have no clients. For now unused, will be used by generator and lighting in the future.madmaxoft@gmail.com1-0/+6
2012-02-23Plain pointer cChunkPtr finishing touches; removed cChunk's critical sectionsmadmaxoft@gmail.com1-14/+5
2012-02-23Made cChunkPtr a plain old pointer again, since it's safe nowmadmaxoft@gmail.com1-1/+1
2012-02-23cChunk: removed unused codemadmaxoft@gmail.com1-2/+0
2012-02-21Removed cChunkPtrs from everywhere but internal cChunkMap usage. Now we should finally be threadsafe :)madmaxoft@gmail.com1-2/+8
2012-02-21Fixed heightmap optimization from rev 302; removed a few more cChunkPtrsmadmaxoft@gmail.com1-3/+4
2012-02-20Removed some more cChunkPtr usagemadmaxoft@gmail.com1-2/+24
2012-02-18Substantial cWorld::FastSetBlock() speed up by queueing all such calls and processing them later chunk-wise (makes growing trees in the generator fast again)madmaxoft@gmail.com1-1/+16
2012-02-18Re-implemented tree-growing. May produce artefacts on old-world / new-world boundaries.madmaxoft@gmail.com1-3/+6
2012-02-18Thread-safe chunk generation, storage and generator are queried for progress while initializing servermadmaxoft@gmail.com1-1/+1
2012-02-17Chunk coords mostly "upgraded" to include the Y coord for future compatibilitymadmaxoft@gmail.com1-2/+12
2012-02-16cWorldGenerator speedup - doesn't call GetChunk() anymore, not queueing the chunk it's generating to be loaded recursively.madmaxoft@gmail.com1-4/+4
2012-02-16Chunk is now marked as dirty; saving only dirty chunks; rewritten load / save not to use cChunkPtr; set VC2008 project to level4 warnings; block entities are now loaded and saved properlymadmaxoft@gmail.com1-3/+49
2012-02-15Restored chest and furnace functionality as it was (it's basically working but joined chests show single-chest window)madmaxoft@gmail.com1-0/+2
2012-02-14Slight cleanup - removed old code, some additional comments on dangerous functionsmadmaxoft@gmail.com1-10/+9
2012-02-13Rewritten most of the code for multithreading; still not 100%, but getting there. If this commit proves to be too problematic, we can always undo it.madmaxoft@gmail.com1-36/+93
2012-02-08Removed unused codemadmaxoft@gmail.com1-3/+5
2012-02-08MTRand class is not created in each tick, therefore much improving tick-thread time (now uses ~5 % CPU instead of one full core)madmaxoft@gmail.com1-2/+12
2012-01-29Old code begone! ChunkMap cleanupmadmaxoft@gmail.com1-2/+0
2012-01-19Terrain generation is synchronous again, async generation has bugs.faketruth1-2/+2
2012-01-01Fixed the numchunks console command.faketruth1-0/+5
2011-12-31Made a couple of functions in cChunk inline, this should speed up several block operations on chunksfaketruth1-1/+14
2011-12-26 - Linux compatible fixes including updated makefilemtilden@gmail.com1-1/+1
2011-12-26Moved the actual world generation from cChunk.cpp to a more isolated file cWorldGenerator.cppfaketruth1-15/+7
2011-12-26Made some functions in cChunk and cNoise inline, this should significantly increase chunk generation speedfaketruth1-1/+6
2011-12-25Chunks are generated in a separate thread allowing players to keep on playing and chatting while chunks are generated. This means, however, that cWorld::GetChunk() does not always return a chunk and is something you need to be aware of. I am not entirely sure if all this is completely stable, but I think so :Ofaketruth1-0/+1
2011-12-22Digging leaves with shears now drops leaveslapayo94@gmail.com1-0/+2
2011-10-31Prepared some parts of the code for multi world support, I created lots of TODO'sfaketruth1-4/+7
2011-10-21Compiles for linuxfaketruth1-1/+2
2011-10-03MCServer c++ source filesfaketruth1-0/+127