summaryrefslogtreecommitdiffstats
path: root/src/Simulator/IncrementalRedstoneSimulator.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Initial convertion of a_Dt to std::chronoTycho2015-01-111-1/+1
| | | | also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
* NULL -> nullptrTiger Wang2014-12-171-2/+6
|
* Improved redstone simulatorTiger Wang2014-10-291-105/+138
| | | | | | * Fixed style inconsistencies * Used more C++11 features * Improved speed perhaps
* Cleaned up simulatorsTiger Wang2014-10-251-1/+352
|
* IncrementalRedstoneSimulator now has no dependencies on cChunkTycho2014-09-161-309/+3
|
* Don't include IncrementalRedsonteSimulator.inc when in SELF_TEST modeTycho2014-09-111-5/+0
|
* Possibly decoupled IncrementalRedstoneSimulator from the rest of the serverTycho2014-09-111-12/+16
| | | | THis wil hopefully allow for unit testing
* Fixed tabs used for alignment.madmaxoft2014-07-171-1/+1
|
* Normalized comments.madmaxoft2014-07-171-12/+12
| | | | | 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 redstone simulator crashTiger Wang2014-07-151-2/+2
| | | | | * Fixes #1176 * Fixed #1186
* Implemented trapped chests & othersTiger Wang2014-07-071-4/+24
| | | | | | | + Added trapped chests * Fixed a bunch of bugs in the redstone simulator concerning wires and repeaters * Other potential bugfixes
* Implemented tripwire(s) (hooks)Tiger Wang2014-06-281-0/+8
| | | | * Fixes #944
* Moved repeater handling to seperate passTycho2014-06-161-1/+3
|
* Fixed a repeater issueTiger Wang2014-06-141-1/+1
| | | | | * Repeaters now properly continuously update their powering * Minor cosmetic improvements
* Further improvements on redstone speedTiger Wang2014-06-071-3/+3
| | | | | | | 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
* Redstone simulator now directly accesses cChunkTiger Wang2014-04-271-34/+34
| | | | | | * Redstone simulator performance improvements * Added return values to some functions * Minor fixes
* Compile fix?Tiger Wang2014-04-171-2/+2
|
* Implemented weighted pressure platesTiger Wang2014-04-171-4/+6
|
* Rewrote redstone powering to use power levelsTiger Wang2014-04-151-15/+16
|
* Added support for redstone latchingTycho2014-04-061-0/+2
| | | | fixes #856
* g_BlockXXX => cBlockInfo::XXXandrew2014-03-011-1/+1
|
* A fix and an improvementTiger Wang2014-02-151-1/+2
| | | | | | | | * 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-12/+23
| | | | | | | | | | | | | + 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 Fence Gate to Redstone SimulatorHowaner2014-02-151-0/+2
|
* Improved pressure platesTiger Wang2014-02-121-0/+4
| | | | | + 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/+263