summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities/BeaconEntity.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-01-14Fixed Compiler Warningsx12xx12x1-2/+2
2021-05-03Add player statistics to API (#5193)nshah251-2/+2
* Fixed issue #5166 Co-authored-by: 12xx12 <44411062+12xx12@users.noreply.github.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2021-04-12Fix sending incorrect date values on world changeTiger Wang1-2/+4
Yak shave: make more things use cTickTime. Fix a couple of incorrect modulo-on-millisecond-value by making them use WorldTickAge.
2021-01-02Fix potential destruction crashes (#5095)Tiger Wang1-3/+14
* Fix potential destruction crashes * Fix destructors accessing destroyted objects * Fix cPlayer not destroying windows (Destroyed never called) * Tentatively fixes #4608, fixes #3236, fixes #3262 - Remove cEntity::Destroyed() and replace with cEntity::OnRemoveFromWorld() * Add missing call to OnRemoveFromWorld
2020-10-09Beacon now checks for players in surrounding square (#4972)12xx121-21/+14
* Beacon now check for players in surrounding square not every player * added proper BoundingBox Co-authored-by: Alexander Harkness <me@bearbin.net> * one symbol to change everything one symbol to break the whole build Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Alexander Harkness <me@bearbin.net>
2020-09-05Add more statistic tracking (#4837)12xx121-0/+2
+ Added possible 1.8 stats + Added stat tracking for 1.8.2 + Added stat tracking for 1.9 + Added the breed cow achievement Co-authored-by: 12xx12 <12xx12100@gmail.com>
2020-08-19Add Statistics and Achievements for newer Network standards12xx121-1/+1
2020-04-16Using Super.Mattes D1-2/+2
2020-04-03Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D1-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
2019-09-29Refactored more of Entities and BlockEntities to use Vector3. (#4403)Mattes D1-8/+8
2018-05-02Prefer static_cast to reinterpret_cast (#4223)peterbell101-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.
2017-10-02Fixed 2 small warnings (#4055)Bond-0091-6/+2
2017-09-19Removed UTF-8 BOM (#4033)Lukas Pioch1-1/+1
2017-09-11Replace ItemCallbacks with lambdas (#3993)peterbell101-45/+15
2017-09-02Revert "Replace ItemCallbacks with lambdas (#3948)"LogicParrot1-15/+45
This reverts commit 496c337cdfa593654018c171f6a74c28272265b5.
2017-09-01Replace ItemCallbacks with lambdas (#3948)peterbell101-45/+15
2017-08-21Award player an achievement when creating a beacon (#3930)Bond-0091-13/+36
2017-08-18cBeaconEntity fix no world crashpeterbell101-1/+4
2017-06-16BlockEntities: Support cloning self.Mattes D1-11/+27
2017-06-05Fixes problems with windows:Lukas Pioch1-1/+1
- Changed cPlayer:OpenWindow to accept a ref, tolua adds a nil check - Close open lua window in destructor, to avoid dangling pointers
2017-02-05Fixed bindings for cBlockArea:Read and Write. (#3568)Mattes D1-1/+1
The original bindings accepted nil as the World param, causing a crash.
2016-11-18Removed ClientHandle.h dependencies from common headers.Mattes D1-6/+7
2015-12-13allow use failures to propagate from the entity/block to the playerGargaj1-1/+2
2015-07-29Silenced and fixed many warning messages across multiple files.Samuel Barney1-2/+2
2015-05-24Made -Weverything an error.tycho1-3/+3
2015-03-10Moved window code into cpp filesHowaner1-1/+1
2015-01-11Initial convertion of a_Dt to std::chronoTycho1-1/+1
also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
2014-12-13Own classes for all windows.Howaner1-0/+1
2014-11-27BlockEntities: Removed the extra semicolon.Mattes D1-9/+10
2014-10-23En masse NULL -> nullptr replaceTiger Wang1-9/+15
2014-10-20En masse NULL -> nullptr replaceTiger Wang1-5/+5
2014-10-12fix std:min call, include algorithm and compare same typeSteven Riehl1-2/+2
2014-10-12refactor an if block to std::minSteven Riehl1-4/+1
2014-10-12convert old style casts to fix warningsSteven Riehl1-8/+4
2014-09-30Removed WSSCompactTiger Wang1-62/+0
2014-08-02Fixed a bug who can used from hacked clients.Howaner1-0/+2
2014-07-31Use "default:" in switch.Howaner1-3/+6
2014-07-31Renamed "select..." methods to "set..." and better IsValidEffect() function.Howaner1-47/+11
2014-07-31Renamed functions and added beacon json saving.Howaner1-40/+38
2014-07-30Added window update.Howaner1-0/+23
2014-07-30Exported the beacon.Howaner1-2/+0
2014-07-30Added beacon.Howaner1-19/+290
2014-07-21Style: Normalized to no spaces before closing parenthesis.madmaxoft1-1/+1
2014-07-17Basic style fixes.madmaxoft1-1/+1
2014-04-19Fixed formatting, made function static.madmaxoft1-8/+9
2014-04-12Some tweaksSTRWarrior1-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.
2014-04-12Removed debug message.STRWarrior1-1/+0
2014-04-12Simplefied GetPyramidLevelSTRWarrior1-10/+3
2014-04-12Implemented the skeleton code for the beacon.STRWarrior1-0/+111
There is no handling for the GUI. It can now check how big the pyramid is under the beacon.