summaryrefslogtreecommitdiffstats
path: root/src/Simulator/RedstoneSimulator.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Basic command block implementationandrew2014-01-181-1/+26
|
* Fixed wire, rail, and pressure plate unpoweringTiger Wang2014-01-131-3/+4
|
* Did some stuff with the vectorsTiger Wang2014-01-111-32/+17
|
* Fixed doors, fixes #453Tiger Wang2014-01-101-38/+8
|
* Major refactoring of redstoneTiger Wang2014-01-101-146/+138
| | | | | | | | | | | | | | | | | | | | This commit is a refactoring of the redstone code, mainly the functions handling the removal of invalid blocks from power supplier data structures. Its aim is to improve performance and potentially reduce the memory footprint of the data structures. It works to reduce the amount of GetBlock()s triggered every tick. Before, a GetBlock() was requested for every single item in the data lists, as well as for every single redstone block in a chunk. Following these changes, the AddBlock() event is utilised more effectively to only update the lists when needed (a block is changed), as well as to insert the block type (and update it when needed) alongside the coordinates into the main redstone simulator chunkdata list. In short, a single GetBlock() is now cached, with this cache being updated when the simulator is awoken due to a block change. At least, I *hope* that this is what it does :P
* Moved increment operator to back of variablesTiger Wang2013-12-261-9/+9
|
* Implemented stone and wooden pressure platesTiger Wang2013-12-241-1/+101
|
* Provides an enhancement to daylight sensorsTiger Wang2013-12-231-2/+27
|
* Daylight sensor sensing enhancementTiger Wang2013-12-231-9/+11
|
* A fix for daylight sensorsTiger Wang2013-12-221-2/+3
|
* Daylight sensorsTiger Wang2013-12-221-2/+1
|
* Fixed them again, confound itTiger Wang2013-12-221-9/+21
|
* Fixed repeaters delay, maybeTiger Wang2013-12-201-8/+33
| | | | | Also added basic daylight sensors, though because GetBlockSkylight always is 15, it doesn't work.
* Fixed repeaters not updating powerTiger Wang2013-12-191-11/+41
|
* Fixed wire powering blocks beneathTiger Wang2013-12-181-1/+1
|
* Fixed bad repeater power queuing in corner caseTiger Wang2013-12-181-83/+73
| | | | | Repeaters remain queued to power even if their original source has since unpowered. Also functionised and cleaned up code.
* Implemented xoft's suggestionsTiger Wang2013-12-151-3/+16
|
* Fixed wire repeater checkingTiger Wang2013-12-151-1/+1
|
* Wires now power repeaters properlyTiger Wang2013-12-151-0/+7
|
* Fixed the hopefully final wire self-powering bugTiger Wang2013-12-151-1/+13
|
* Potentially fixed debug assertsTiger Wang2013-12-141-5/+5
|
* Wires no longer power if a block cuts them offTiger Wang2013-12-141-23/+32
| | | | Also reduced more unneeded code.
* Implemented note block playing and fixed wireTiger Wang2013-12-141-4/+48
| | | | Game of Thrones music in Minecraft, here I come!
* Fixed compilating!Tiger Wang2013-12-141-5/+5
|
* Fixes to redstone wire and torchesTiger Wang2013-12-141-19/+31
| | | | | | + Wires now power blocks around the block beneath * Torches no longer power off if it is on a linked powered block * Enhanced code, split functions, etc.
* Removed loads of unneeded code againTiger Wang2013-12-141-86/+60
|
* Reduced loads of unneeded codeTiger Wang2013-12-141-188/+44
| | | | Merged wire powering detection code into a single function.
* Provides a possible fix for repeater timingsTiger Wang2013-12-101-1/+1
| | | | Not completely reliable, but at least some types of clock work.
* Readded initial lineTiger Wang2013-12-101-0/+1
|
* Fixed compile (alas, no more goto)Tiger Wang2013-12-101-11/+14
|
* Added repeater delaysTiger Wang2013-12-101-1/+53
| | | | They DO sometimes get stuck though :P
* Slight redstone wire performance improvementTiger Wang2013-12-101-1/+6
|
* Changed more FastSetBlocks to SetBlocksTiger Wang2013-12-101-3/+3
| | | | Fixes duplication bugs.
* Changed some FastSetBlocks to SetBlockTiger Wang2013-12-071-3/+3
| | | | Should fix some duplication glitches.
* Fixed trapdoors not togglingTiger Wang2013-12-071-16/+90
| | | | The redstone simulator kept on resetting them.
* Re-implemented redstone duplicate checkingTiger Wang2013-12-061-0/+29
|
* Fixed linux compile errors and formatting in RedstoneSimulator.cppmadmaxoft2013-12-011-14/+26
|
* Fixed pistons extendingTiger Wang2013-11-301-0/+10
| | | | They didn't when a source was in front, but now they do! Yay!
* Removed redstone duplicate power checkingTiger Wang2013-11-301-2/+0
| | | | There was no need for it, and it introduced some bugs.
* Improved piston direction checkingTiger Wang2013-11-301-62/+8
| | | | Now uses AddFaceDirection, as suggested by xoft.
* Pistons no longer accept power through front faceTiger Wang2013-11-301-3/+94
| | | | This fixes #60.
* Improved redstone speed and fixed a wire bugTiger Wang2013-11-301-73/+83
| | | | | | | | The redstone simulator no longer goes through the Powered and LinkedPowered blocks lists for EVERY item in the chunk data, instead, only at every tick. Also, wires powering each other that had the same data value is now fixed.
* Implemented trapdoors, fixes #43 and #105Tiger Wang2013-11-291-0/+17
| | | | Also updated redstone simulator to support it
* Merged master into redstonefixesTiger Wang2013-11-271-185/+310
|
* Merge remote-tracking branch 'origin/master' into foldermove2Alexander Harkness2013-11-241-866/+761
| | | | | Conflicts: GNUmakefile
* Moved source to srcAlexander Harkness2013-11-241-0/+1178