summaryrefslogtreecommitdiffstats
path: root/src/Simulator/RedstoneSimulator.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Using Super.Mattes D2020-04-161-4/+5
|
* Force all headers other than "Globals.h" to be included with relative paths (#4269)peterbell102018-08-291-1/+1
| | | | | | | Closes #4236 CMake now creates a header file in the build directory under the path "include/Globals.h" which just includes "src/Globals.h" with an absolute path. Then instead of adding "src/" to the include directories, it adds "include/". #include "Globals.h" still works by including the build generated file and any other src-relative path will not work.
* Changed int parameters to vector parameters in cCuboid and simulators (#3874)Lane Kolbly2017-08-171-1/+1
|
* Remove double includes part 2 (#3890)peterbell102017-08-031-1/+0
|
* Reorganised the redstone simulatorTiger Wang2015-12-181-7/+18
| | | | | | -> Many thanks to @worktycho for the idea, and @Haxi52 for the implementation plan! * Uses classes and inheritance now * Speed should be improved
* Cleaned up simulatorsTiger Wang2014-10-251-4/+4
|
* Use factory method to construct redstone simulator dataTycho2014-09-281-0/+2
|
* Fixed issue with castingtycho2014-09-261-1/+3
|
* IncrementalRedstoneSimulator now has no dependencies on cChunkTycho2014-09-161-0/+6
|
* Possibly decoupled IncrementalRedstoneSimulator from the rest of the serverTycho2014-09-111-4/+7
| | | | THis wil hopefully allow for unit testing
* Renamed cRedstoneManager to cRedstoneSimulator and renamed cRedstoneSimulator to cIncrementalRedstoneSimulator (Might change later).STRWarrior2014-02-071-251/+5
|
* Implemented an easy way of adding new redstone simulators.STRWarrior2014-02-071-3/+3
| | | | Also added a "noop" redstone simulator that does the same as the fluid version.
* Fixed redstone simulator crash found in #570Tiger Wang2014-01-291-1/+1
|
* Basic command block implementationandrew2014-01-181-0/+4
|
* Fixed rails poweringTiger Wang2014-01-111-0/+2
|
* Fixed a door bug and reduced codeTiger Wang2014-01-111-19/+1
| | | | | Doors wouldn't get powered by repeaters, and some blocks, like glass, were viable middle blocks when they shouldn't have been.
* Major refactoring of redstoneTiger Wang2014-01-101-39/+40
| | | | | | | | | | | | | | | | | | | | 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
* converted commneted paramater names to the unused macroTycho Bickerstaff2013-12-221-1/+1
|
* Merge branch 'master' of github.com:mc-server/MCServerTycho Bickerstaff2013-12-221-2/+4
|\
| * Implemented stone and wooden pressure platesTiger Wang2013-12-241-2/+4
| |
* | Piston is now warnings cleanTycho Bickerstaff2013-12-211-2/+2
|/
* Fixed repeaters delay, maybeTiger Wang2013-12-201-4/+5
| | | | | Also added basic daylight sensors, though because GetBlockSkylight always is 15, it doesn't work.
* Fixed bad repeater power queuing in corner caseTiger Wang2013-12-181-0/+3
| | | | | Repeaters remain queued to power even if their original source has since unpowered. Also functionised and cleaned up code.
* Implemented note block playing and fixed wireTiger Wang2013-12-141-0/+2
| | | | Game of Thrones music in Minecraft, here I come!
* Fixes to redstone wire and torchesTiger Wang2013-12-141-1/+5
| | | | | | + 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.
* Fixed pistons being viable middle blockTiger Wang2013-12-111-0/+3
| | | | Also an excuse to update submodules
* Added repeater delaysTiger Wang2013-12-101-0/+9
| | | | They DO sometimes get stuck though :P
* Fixed trapdoors not togglingTiger Wang2013-12-071-0/+12
| | | | The redstone simulator kept on resetting them.
* Pistons no longer accept power through front faceTiger Wang2013-11-301-0/+2
| | | | This fixes #60.
* Implemented trapdoors, fixes #43 and #105Tiger Wang2013-11-291-0/+2
| | | | Also updated redstone simulator to support it
* Merged master into redstonefixesTiger Wang2013-11-271-16/+51
|
* Merge remote-tracking branch 'origin/master' into foldermove2Alexander Harkness2013-11-241-52/+165
| | | | | Conflicts: GNUmakefile
* Moved source to srcAlexander Harkness2013-11-241-0/+86