summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities/BeaconEntity.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D2020-04-031-0/+1
| | | | | | | | | The BlockID.h file was removed from Globals.h and renamed to BlockType.h (main change) The BlockInfo.h file was removed from Globals.h (main change) The ENUM_BLOCK_ID and ENUM_ITEM_ID enum names were replaced with ENUM_BLOCK_TYPE and ENUM_ITEM_TYPE (cosmetics) The various enums, such as eDimension, eDamageType and eExplosionSource were moved from BlockType.h to Defines.h, together with the helper functions for converting between them and strings (StringToDimension et al.) (minor) Many inline functions were moved from headers to their respective cpp files, so that BlockType.h could be included only into the cpp file, rather than the header. That broke our tests a bit, since they pick bits and pieces out of the main code and provide stubs for the rest; they had to be re-stubbed and re-verified. eMonsterType values are no longer tied to E_ITEM_SPAWN_EGG_META_* values
* Refactored more of Entities and BlockEntities to use Vector3. (#4403)Mattes D2019-09-291-8/+8
|
* Prefer static_cast to reinterpret_cast (#4223)peterbell102018-05-021-1/+1
| | | | | | | * Change reinterpret_cast -> static_cast wherever possible * Remove more unnecessary `const_cast`s. reinterpret_casts should be avoided for the same reason as c-style casts - they don't do any type-checking. reinterpret_cast was mainly being used for down-casting in inheritance hierarchies but static_cast works just as well while also making sure that there is actually an inheritance relationship there.
* Fixed 2 small warnings (#4055)Bond-0092017-10-021-6/+2
|
* Removed UTF-8 BOM (#4033)Lukas Pioch2017-09-191-1/+1
|
* Replace ItemCallbacks with lambdas (#3993)peterbell102017-09-111-45/+15
|
* Revert "Replace ItemCallbacks with lambdas (#3948)"LogicParrot2017-09-021-15/+45
| | | | This reverts commit 496c337cdfa593654018c171f6a74c28272265b5.
* Replace ItemCallbacks with lambdas (#3948)peterbell102017-09-011-45/+15
|
* Award player an achievement when creating a beacon (#3930)Bond-0092017-08-211-13/+36
|
* cBeaconEntity fix no world crashpeterbell102017-08-181-1/+4
|
* BlockEntities: Support cloning self.Mattes D2017-06-161-11/+27
|
* Fixes problems with windows:Lukas Pioch2017-06-051-1/+1
| | | | | - Changed cPlayer:OpenWindow to accept a ref, tolua adds a nil check - Close open lua window in destructor, to avoid dangling pointers
* Fixed bindings for cBlockArea:Read and Write. (#3568)Mattes D2017-02-051-1/+1
| | | The original bindings accepted nil as the World param, causing a crash.
* Removed ClientHandle.h dependencies from common headers.Mattes D2016-11-181-6/+7
|
* allow use failures to propagate from the entity/block to the playerGargaj2015-12-131-1/+2
|
* Silenced and fixed many warning messages across multiple files.Samuel Barney2015-07-291-2/+2
|
* Made -Weverything an error.tycho2015-05-241-3/+3
|
* Moved window code into cpp filesHowaner2015-03-101-1/+1
|
* Merge branch 'master' into InventoryHowaner2015-01-251-1/+1
|\
| * Initial convertion of a_Dt to std::chronoTycho2015-01-111-1/+1
| | | | | | | | also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
* | Own classes for all windows.Howaner2014-12-131-0/+1
|/
* BlockEntities: Removed the extra semicolon.Mattes D2014-11-271-9/+10
|
* En masse NULL -> nullptr replaceTiger Wang2014-10-231-9/+15
|
* Merged branch 'master' of git://github.com/sriehl/MCServerMattes D2014-10-211-10/+4
|\
| * fix std:min call, include algorithm and compare same typeSteven Riehl2014-10-121-2/+2
| |
| * refactor an if block to std::minSteven Riehl2014-10-121-4/+1
| |
| * convert old style casts to fix warningsSteven Riehl2014-10-121-8/+4
|/
* Removed WSSCompactTiger Wang2014-09-301-62/+0
|
* Fixed a bug who can used from hacked clients.Howaner2014-08-021-0/+2
|
* Use "default:" in switch.Howaner2014-07-311-3/+6
|
* Renamed "select..." methods to "set..." and better IsValidEffect() function.Howaner2014-07-311-47/+11
|
* Renamed functions and added beacon json saving.Howaner2014-07-311-40/+38
|
* Added window update.Howaner2014-07-301-0/+23
|
* Exported the beacon.Howaner2014-07-301-2/+0
|
* Added beacon.Howaner2014-07-301-19/+290
|
* Style: Normalized to no spaces before closing parenthesis.madmaxoft2014-07-211-1/+1
|
* Basic style fixes.madmaxoft2014-07-171-1/+1
|
* Fixed formatting, made function static.madmaxoft2014-04-191-8/+9
|
* Some tweaksSTRWarrior2014-04-121-5/+17
| | | | | GetPyramidLevel returns 0 when no layers were found, 1 for one layer etc. Auto adjust the minY and/or maxY to 0 if the beacon is low.
* Removed debug message.STRWarrior2014-04-121-1/+0
|
* Simplefied GetPyramidLevelSTRWarrior2014-04-121-10/+3
|
* Implemented the skeleton code for the beacon.STRWarrior2014-04-121-0/+111
There is no handling for the GUI. It can now check how big the pyramid is under the beacon.