summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockTorch.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Allow certain blocks to be placed on top of upside-down stairs/slabs (#5468)Michal Havlíček2023-01-251-22/+32
| | | | | | | | | | | * Placing certain blocks on top of upside down slabs and stairs * remove TODO * fix style errors * IsAnyStairType helper function * Block placement on stairs and slabs
* Move item placement into item handlers (#5184)Tiger Wang2021-05-051-101/+19
| | | | | | | | | | | | | | | | | | | | | | | | | * Move item placement into item handlers + Add appropriate CanBeAt checks in cPlayer::PlaceBlocks, into which all placement handlers call. * Partly addresses #5157 * Fixes #4878 * Fixes #2919 * Fixes #4629 * Fixes #4239 * Fixes #4849 Co-authored-by: changyong guo <guo1487@163.com> Co-authored-by: Xotheus <shady3300@outlook.com> Co-authored-by: Krist Pregracke <krist@tiger-scm.com> * Review fixes * Update APIDesc.lua * Rename Co-authored-by: changyong guo <guo1487@163.com> Co-authored-by: Xotheus <shady3300@outlook.com> Co-authored-by: Krist Pregracke <krist@tiger-scm.com>
* Do not fake a tool when converting to pickups (#5170)Tiger Wang2021-03-281-1/+1
| | | | | * When the cause of destruction was world-induced (CanBeAt check failed) there is no tool. Pass the nullptr directly to ConvertToPickups and let it handle it. * Fixes #4795 - Remove unused a_Digger parameter to ConvertToPickups.
* Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963)peterbell102020-10-051-3/+46
| | | | | | | | | | | | | | | * Fix cmake not adding Werror on clang, and _lots_ of warnings * WIP: Build fixes * Cannot make intermediate blockhandler instance * Tiger's changes * Fix BitIndex check * Handle invalid NextState values in cMultiVersionProtocol Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* BlockHandler initialisation is a constant expression (#4891)Tiger Wang2020-09-201-10/+5
| | | | | | | | | | | | | * BlockHandler initialisation is a constant expression If we can't make it all namespaces, this is the next best I guess. + Tag handlers constexpr, const as needed + Inherit constructors * Privatise handler functions * More constexpr Co-authored-by: Alexander Harkness <me@bearbin.net>
* Vector3 in Handlers (#4680)Mattes D2020-04-211-44/+68
| | | Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
* Using Super.Mattes D2020-04-161-2/+2
|
* Refactored block-to-pickup conversion. (#4417)Mattes D2019-10-161-10/+7
|
* Fix building with clang 8.0 (#4346)Bond-0092019-08-111-1/+1
|
* cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050)Bond-0092017-11-201-2/+2
|
* cBlockHandler: take player by refpeterbell102017-08-011-1/+1
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-2/+2
|
* Improved mapsTiger Wang2015-07-141-8/+7
|
* Torches can now be placed on top of upside down stairs.Samuel Barney2015-07-141-0/+16
|
* Merge branch 'master' into PreventNewWarningstycho2015-05-231-0/+5
|\
| * Added missing fencetypes to torchhandlerJulian Laubstein2015-05-201-0/+5
| |
* | Fixed compile and a few more warningstycho2015-05-191-1/+1
|/
* Cleaned up simulatorsTiger Wang2014-10-251-0/+1
|
* Comment suggestionsTiger Wang2014-10-031-2/+3
|
* Improved torch handlerTiger Wang2014-09-301-70/+51
|
* IndentationJulian Laubstein2014-09-301-3/+3
|
* Set right indentationJulian Laubstein2014-09-301-3/+3
|
* actual solving of the halfslap+torch problemJulian Laubstein2014-09-301-1/+3
|
* Style fixes.madmaxoft2014-09-291-6/+8
|
* Update BlockTorch.hJulian Laubstein2014-09-291-3/+3
|
* Added torches placeable on upside-down-halfslapsJulian Laubstein2014-09-291-1/+3
|
* Moved sound-configs into BlockID.h and fixed/ added loads of soundsMasy982014-09-091-6/+0
|
* Code formatting fixes.Howaner2014-08-191-2/+2
|
* Style: Normalized to no spaces before closing parenthesis.madmaxoft2014-07-211-2/+2
|
* Style: Normalized spaces after if, for and while.madmaxoft2014-07-211-3/+4
|
* Basic style fixes.madmaxoft2014-07-171-1/+1
|
* Normalized comments.madmaxoft2014-07-171-6/+6
| | | | | 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.
* Added more block exceptions to torchesTiger Wang2014-06-281-0/+4
|
* Fixed spelling; Rotater to Rotator.narroo2014-03-251-3/+3
|
* Merge pull request #729 from worktycho/MetaRotateMattes D2014-03-081-64/+3
|\ | | | | Alternitive solution to #503
| * ReformattedTycho2014-03-021-2/+2
| |
| * Implemented RotationsTycho2014-03-011-64/+3
| |
* | g_BlockXXX => cBlockInfo::XXXandrew2014-03-011-3/+3
|/
* Fix gcc not having operator ++ on enumsTycho2014-02-041-6/+7
|
* Improved Type safety of eBlockFaceTycho2014-02-041-8/+8
| | | | May Fix #640
* Merge branch 'master' into GeneratingBenchmark2Tycho2014-02-021-1/+2
|\ | | | | | | | | Conflicts: src/Blocks/BlockTorch.h
| * Fixed #620Tiger Wang2014-02-021-1/+2
| |
* | Changed Signiture of OnDestroyedByPlayerTycho2014-02-011-1/+1
| |
* | Changed pointers to referencesTycho2014-02-011-5/+5
| |
* | Changed signitures of Several BLockHandler MethodsTycho2014-02-011-7/+7
|/ | | | | | | | | | | | | Changed the signitures of the following to use interfaces: GetPlacementBlockTypeMeta OnPlaced OnPlacedByPlayer OnDestroyed OnNeighbourChanged NeighbourChanged OnUse CanBeAt Check
* Renamed g_TorchPlaceable...Tiger Wang2014-01-111-3/+3
| | | | ...to g_FullyOccupiesVoxel, as recommended by @bearbin
* Cleaned up torch code and added commentsTiger Wang2013-12-061-31/+7
|
* Removed another export and inline'd stuffTiger Wang2013-12-061-5/+5
|
* Removed exporting of a torch functionTiger Wang2013-12-061-3/+3
|
* Merge remote-tracking branch 'origin/master' into foldermove2Alexander Harkness2013-11-241-2/+0
| | | | | Conflicts: GNUmakefile
* Moved source to srcAlexander Harkness2013-11-241-0/+277