summaryrefslogtreecommitdiffstats
path: root/src/Simulator/IncrementalRedstoneSimulator.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Added first test to show the object can be createdTycho2014-09-171-1/+3
|
* IncrementalRedstoneSimulator now has no dependencies on cChunkTycho2014-09-161-6/+5
|
* Possibly decoupled IncrementalRedstoneSimulator from the rest of the serverTycho2014-09-111-2212/+19
| | | | THis wil hopefully allow for unit testing
* Removed dependecy of redstone simulator on NoteBlockTycho2014-08-051-11/+6
|
* Refactored Redstone simulator not to depend on TNTEntity or DropSpenserENtity DirectlyTycho2014-08-051-5/+4
|
* CheckBasicStyle: multi-level indent change.madmaxoft2014-08-041-3/+3
|
* Fixed style: spaces after commas.madmaxoft2014-07-191-5/+5
|
* Fixed spaces before commas.madmaxoft2014-07-181-2/+2
|
* Fixed tabs used for alignment.madmaxoft2014-07-171-1/+1
|
* More trailing whitespace fixes.madmaxoft2014-07-171-4/+4
|
* Basic style fixes.madmaxoft2014-07-171-7/+7
|
* Normalized comments.madmaxoft2014-07-171-59/+59
| | | | | This was mostly done automatically and then visually inspected for obvious errors. All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign.
* Fixed another redstone simulator crashTiger Wang2014-07-161-0/+7
|
* Fixed redstone simulator crashTiger Wang2014-07-151-6/+29
| | | | | * Fixes #1176 * Fixed #1186
* Changed BroadcastSoundEffect function to take floating pos.Howaner2014-07-131-7/+7
|
* Suggestions and bug fixTiger Wang2014-07-121-1/+1
| | | | | | * Fixed hoppers pushing/pulling to/from (trapped)chests that do not form a double-chest with the chest type directly connected to said hopper; thank you, @madmaxoft
* SuggestionsTiger Wang2014-07-111-0/+3
|
* SuggestionsTiger Wang2014-07-111-1/+4
|
* Improved LinkedPowering speedTiger Wang2014-07-111-15/+15
| | | | * Additionally fixed wires powering other wires through blocks
* Fixed compilation and pressure platesTiger Wang2014-07-071-8/+4
|
* Implemented trapped chests & othersTiger Wang2014-07-071-79/+126
| | | | | | | + Added trapped chests * Fixed a bunch of bugs in the redstone simulator concerning wires and repeaters * Other potential bugfixes
* Fixed c1deda5d8f01811efa5094e9375166acb69d50edTiger Wang2014-07-041-2/+2
| | | | I keep on breaking stuff :P
* Implemented tripwire(s) (hooks)Tiger Wang2014-06-281-15/+148
| | | | * Fixes #944
* Merge pull request #1105 from Howaner/BlocksMattes D2014-06-221-4/+10
|\ | | | | Added door and fence gate sounds.
| * Changed 0xFFFFFFFB to ~0x04Howaner2014-06-221-1/+1
| |
| * Merge branch 'master' into BlocksHowaner2014-06-171-2/+1
| |\
| * | Fix fence gate sound (Redstone simulator).Howaner2014-06-171-4/+10
| | |
* | | Merge branch 'master' of https://github.com/mc-server/MCServerTiger Wang2014-06-221-2/+4
|\ \ \
| * | | Fixed missing breakworktycho2014-06-221-0/+1
| | | | | | | | | | | | Fixes CID 68409
| * | | Fixed invalid iteratorworktycho2014-06-221-2/+3
| | | | | | | | | | | | Fixes CID 60408
* | | | Fixed another daylight sensor bugTiger Wang2014-06-221-20/+23
|/ / / | | | | | | | | | Additionally fixed unpowering across chunks.
* | | Merge pull request #1096 from mc-server/redstonerefactorAlexander Harkness2014-06-181-137/+63
|\ \ \ | |_|/ |/| | Moved delayed repeaters to be handled in a seperate pass
| * | FIxed second weird enumTycho2014-06-161-20/+1
| | |
| * | Refactored reversing logic into seperate functionTycho2014-06-161-14/+3
| | |
| * | Fixed tigers weird enumsTycho2014-06-161-14/+6
| | |
| * | Merge branch 'master' into redstonerefactorTycho2014-06-161-8/+29
| |\| | | | | | | | | | | | | Conflicts: src/Simulator/IncrementalRedstoneSimulator.cpp
| * | Moved repeater handling to seperate passTycho2014-06-161-96/+61
| | |
* | | Fix fence gate redstone simulator.Howaner2014-06-171-2/+1
| |/ |/|
* | Merge branch 'master' of github.com:mc-server/MCServerTycho2014-06-161-8/+30
|/
* Fixed a repeater issueTiger Wang2014-06-141-16/+15
| | | | | * Repeaters now properly continuously update their powering * Minor cosmetic improvements
* Fixed two redstone bugsTiger Wang2014-06-121-0/+6
| | | | | * Fixed chunk border powering * Fixed quick place-replace powering
* Merge remote-tracking branch 'howaner/Redstone'madmaxoft2014-06-091-4/+10
|\
| * Add SetOpen() and IsOpen() to BlockDoor.h and fix door redstone bug.Howaner2014-05-291-4/+10
| |
* | Further improvements on redstone speedTiger Wang2014-06-071-64/+77
| | | | | | | | | | | | | | Based on suggestions of @worktycho * Repeaters now walk their data structure only when needed * Fixed a bug with cChunkData returning an incorrect value for whether a meta had changed
* | Further reduced redstone idle CPU consumptionTiger Wang2014-06-061-7/+27
| | | | | | | | | | | | * Repeaters and wires are no longer unnecessarily ticked * Fixed #1063, likely addressed #1062 * Fixed bugs regarding duplicate values
* | Redstone fixes and improvements [SEE DESC]Tiger Wang2014-06-051-60/+87
| | | | | | | | | | | | | | | | Haha, see desc. * Improved redstone speed through a marking dirty system. Only a select few devices are still continuously simulated * Fixed redstone crashing with recent piston changes
* | Merge pull request #1011 from SphinxC0re/SomeWarningFixesMattes D2014-06-041-2/+8
|\ \ | | | | | | Fixed some warnings
| * | Update IncrementalRedstoneSimulator.cppJulian Laubstein2014-06-041-8/+8
| | |
| * | Fixed warnings in IncrementalRedstoneSimulatorJulian Laubstein2014-05-191-1/+7
| |/
* | Fixed piston power checkingTiger Wang2014-05-291-11/+6
| |
* | Hopefully fixed piston duplication issuesTiger Wang2014-05-251-5/+4
|/ | | | | * Fixes #879 * Fixes #714
* Fixed wires powering wires diagonally below themTiger Wang2014-05-071-5/+1
|
* Fixed formattingTiger Wang2014-05-051-4/+5
|
* Fixed 027efe09ea3d3222c3cbf169643e57773c1614aeTiger Wang2014-05-041-3/+49
|
* Merge branch 'master' into redstoneimprovementsTiger Wang2014-05-041-2/+8
|\ | | | | | | | | | | | | | | Conflicts: src/ClientHandle.cpp src/Entities/FallingBlock.cpp src/Mobs/AggressiveMonster.cpp src/Simulator/IncrementalRedstoneSimulator.cpp
| * Fixed pressure plate oversightsTiger Wang2014-05-041-2/+8
| | | | | | | | | | | | | | * Fixed stone pressure plates not checking for the correct distance for players * Fixed pressure plates in general not link powering the blocks beneath them
* | Fixed lever and button powering directionTiger Wang2014-05-041-16/+8
| |
* | Redstone simulator now directly accesses cChunkTiger Wang2014-04-271-404/+522
|/ | | | | | * Redstone simulator performance improvements * Added return values to some functions * Minor fixes
* Removed unsupported C++11 features.madmaxoft2014-04-181-13/+19
|
* Implemented weighted pressure platesTiger Wang2014-04-171-25/+165
|
* Rewrote redstone powering to use power levelsTiger Wang2014-04-151-165/+133
|
* cRedstoneSimulator.cpp style improvementsTiger Wang2014-04-081-40/+41
|
* Uppercased Zwiseoldman952014-04-081-3/+3
| | | Minor, no code changed.
* Comments: Inverted Z axis.wiseoldman952014-04-081-9/+10
| | | | | -Comments fix, No code has been changed. -Inverted the Z axis in the comments and changed all dependent comments accordingly. -Added NORTH/SOUTH/EAST/WEST in addition to LEFT/RIGHT/UP/DOWN.
* Added comments regarding latching and orientationwiseoldman952014-04-081-9/+31
| | | No real code was changed.
* Fixed the thing properly.Alexander Harkness2014-04-081-8/+8
|
* Merge pull request #862 from mc-server/redstonefixAlexander Harkness2014-04-081-23/+3
|\ | | | | Fixed #859
| * Fixed #859Tiger Wang2014-04-071-23/+3
| |
* | Fixed IsOnwiseoldman952014-04-071-3/+2
| |
* | Removed stray IsLockedwiseoldman952014-04-071-2/+2
| |
* | Removed unneeded spacingswiseoldman952014-04-071-6/+3
| |
* | Slight cleanupwiseoldman952014-04-071-13/+17
| | | | | | It is more efficient and readable if we do nothing unless we're not locked.
* | Fixed some more minor issues with the redstone simulator.Alexander Harkness2014-04-071-34/+39
| |
* | Improved the speed a little more.Alexander Harkness2014-04-071-1/+1
| |
* | Fixed the redstone simulator.Alexander Harkness2014-04-071-49/+40
| |
* | Fix some of the comments in the PR tycho just did.Alexander Harkness2014-04-071-8/+6
| |
* | Added support for redstone latchingTycho2014-04-061-2/+63
|/ | | | fixes #856
* Merge branch 'master' into awesometntTiger Wang2014-03-181-1/+1
|\ | | | | | | | | Conflicts: src/ChunkMap.cpp
| * Fixed double to float conversions.madmaxoft2014-03-161-1/+1
| |
* | Merge remote-tracking branch 'origin/master' into awesometntTiger Wang2014-03-101-1/+1
|\| | | | | | | | | | | Conflicts: src/Items/ItemLighter.h src/Simulator/IncrementalRedstoneSimulator.cpp
| * Change TNT Fuse to ticksHowaner2014-03-081-1/+1
| |
* | Merge branch 'master' into awesometntTiger Wang2014-03-101-5/+3
|\|
| * Merge pull request #746 from Howaner/SlabsMattes D2014-03-031-5/+3
| |\ | | | | | | Add Trapdoor Functions to cWorld and fix Trapdoor Redstone Bugs
| | * Add Trapdoor Functions to cWorld and fix Trapdoor Redstone BugsHowaner2014-03-021-5/+3
| | |
* | | Added extra awesomeness to TNTTiger Wang2014-03-051-1/+1
|/ / | | | | | | | | | | | | + TNT now has a chance of flinging FallingBlock entities around * Improved TNT damage * Improved TNT spawning visuals * Possible fix for 'SetSwimState failure' messages in debug
* / g_BlockXXX => cBlockInfo::XXXandrew2014-03-011-2/+2
|/
* Removed problematic utf8.madmaxoft2014-02-201-2/+2
|
* Bad UTF-8 o.OHowaner2014-02-201-2/+2
|
* Remove typeinfo import in IncrementalRedstoneSimulatorHowaner2014-02-201-2/+0
|
* Add Pressure Plate SoundHowaner2014-02-201-0/+9
|
* Add Light weighted pressure platesHowaner2014-02-201-10/+18
|
* Fixed a glaring bug with chunk cross-simulatingTiger Wang2014-02-161-9/+17
| | | | | | * A chunk's redstone blocks list is no longer touched if AddBlock was being called with another chunk's coordinates * Fixed chunk boundary checks
* Added a 'default:' for SimChunk()'s switchTiger Wang2014-02-151-0/+1
|
* A fix and an improvementTiger Wang2014-02-151-22/+41
| | | | | | | | * Fixed a special case with the wrong ChunkX/Z values being used to calculate a relative position * Simplified data structure adding and removing operations (no more pointers!) - Removed one character of whitespace :D
* Sizeable speed improvements to redstoneTiger Wang2014-02-151-69/+92
| | | | | | | | | | | | | + Moved all simulator data into individual chunks * Cleaned up parameters for functions and some code * Fixed repeaters powering off faster than they power on The main issue before was that, although the redstone simulator stored blocks to be simulated in individual cChunks, other data, such as powered lists, and etcetera, were global regardless of which chunk was being simulated. Therefore, with worlds with lots of redstone, each tick saw the ticking of chunks, which themselves iterated through the entire dataset needlessly, creating LOTS of lag. Should be better now :)
* Add more Sounds to Redstone SimulatorHowaner2014-02-151-1/+23
|
* Add Fence Gate to Redstone SimulatorHowaner2014-02-151-0/+29
|
* Improved pressure platesTiger Wang2014-02-121-1/+1
| | | | | + Two (or more) pressure plates can be triggered at the same time * Fixed issues caused by pressure plates not being in the sources list
* Renamed cRedstoneManager to cRedstoneSimulator and renamed cRedstoneSimulator to cIncrementalRedstoneSimulator (Might change later).STRWarrior2014-02-071-0/+1534