summaryrefslogtreecommitdiffstats
path: root/source/World.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* cWorld:QueueTickBlock takes the delay in ticks.madmaxoft2013-09-161-4/+6
|
* Fixed doxycomments of cWorld plant-growing codemadmaxoft2013-09-151-5/+10
|
* Removed cWorld deprecated API: SetWorldTime()madmaxoft2013-09-151-6/+0
|
* Removed obsoleted cWorld functions from the API:madmaxoft2013-09-151-10/+3
| | | | | GetClassStatic() (is used only internally by ManualBindings) GetTime() (is replaced with GetWorldAge() and GetTimeOfDay()
* Fixed API bindings of cWorld:GetSignLines(), exported cWorld:UseBlockEntity().madmaxoft2013-09-151-2/+2
|
* Fixed cWorld bindings for GetBlockInfo() and GetBlockTypeMeta().madmaxoft2013-09-151-2/+7
| | | | They no longer require the superficial arguments.
* Merged branch 'Projectiles'.madmaxoft2013-09-071-2/+2
|\
| * Renamed cWorld::DoExplosiontAt() to cWorld::DoExplosionAt()madmaxoft2013-09-071-2/+2
| |
* | Exported BroadcastSoundEffect and BroadcastSoundParticleEffect to the Lua APISTRWarrior2013-09-011-728/+728
|/
* Added skeleton code for projectile spawning.madmaxoft2013-08-221-0/+4
|
* Added cWorld:GetIniFileName() to the Lua API.madmaxoft2013-08-211-6/+14
|
* Implemented cWorld:QueueSetBlock(), as requested for delayed blocksetting.madmaxoft2013-08-181-2/+17
| | | | Untested yet, so might not work.
* Removed SetServerBlock griefing.madmaxoft2013-08-181-1/+0
|
* Properly fixed piston non-animationTiger Wang2013-08-181-0/+1
| | | | Fixes #57
* Replaced E_ENTITY_TYPE_XXX with cMonster::mtXXX.madmaxoft2013-08-161-2/+3
| | | | Also slightly improved the spawning algorithm.
* Exported cWorld:DoExplosionAt() to Lua API.madmaxoft2013-08-151-1/+1
|
* Fixed crashes in world's clientlist manipulatorsmadmaxoft2013-08-141-0/+6
|
* Exported cWorld:BroadcastChat() to the Lua API; used in the Core.madmaxoft2013-08-131-2/+2
|
* Clients are now ticked in cServer first, then in cWorld once they get assigned a world.madmaxoft2013-08-131-2/+14
|
* Added cWorld:QueueSaveAllChunks() function for saving chunks asynchronously.madmaxoft2013-08-111-2/+36
| | | | The cWorld:SaveAllChunks() is therefore deprecated in the API and will be removed soon, use QueueSaveAllChunks() instead.
* Each world now ticks in a separate thread.madmaxoft2013-08-111-1/+8
|
* Moved MaxPlayers and Description from cWorld to cServer.madmaxoft2013-08-111-16/+22
| | | | Also started creating a new cWorld::cTickThread class, but not used yet.
* Added OnExploding() and OnExploded() hooks.madmaxoft2013-08-091-3/+15
| | | | | | | | As requested in FS 413, with extra parameters: World, BlockX, BlockY, BlockZ, Size, CanCauseFire, Source, SourceData OnExploding() can return 3 values: StopHook, CanCauseFire, ExplosionSize
* Merge branch 'master' into BlockTracingmadmaxoft2013-08-051-5/+5
|\
| * Exported the cWorld:TryGetHeight() functionmadmaxoft2013-08-051-4/+4
| |
| * Exported cWorld:DoWithEntityByID() to Lua APImadmaxoft2013-08-051-1/+1
| |
* | Added cWorld::DoWithChunk() function.madmaxoft2013-08-031-0/+3
|/ | | | This will be used by the blocktracers to gain direct access to chunk data.
* Tab completion packet is handled and sent.madmaxoft2013-07-301-0/+3
| | | | This only handles the network comm and the overall design logic, the actual completion is not yet implemented, only dummy values are returned for now.
* Added cPlayer::IsGameModeXXX() and cWorld::IsGameModeXXX() functions.madmaxoft2013-07-281-0/+11
| | | | These are the preferred way of determining the gamemode, you should use those instead of doing manual comparisons to the gamemode value.
* World: More unused variables removed.madmaxoft@gmail.com2013-07-071-3/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1667 0a769ca7-a7f5-676a-18bf-c427514a06d6
* World: Removed an unused variablemadmaxoft@gmail.com2013-07-071-1/+0
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1666 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Improved function names for protocol packet sending; alpha-sorted the function listsmadmaxoft@gmail.com2013-07-071-20/+20
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1659 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Rewritten entity-on-fire management ("forever on fire" bugs)madmaxoft@gmail.com2013-07-011-1/+1
| | | | | | | | | Fixes FS #297 and part of FS #403. Added sizes to all entities. Moved all damage-related functions from cPawn to cEntity API change: renamed cPawn:TeleportTo() to cEntity:TeleportToCoords() git-svn-id: http://mc-server.googlecode.com/svn/trunk@1635 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added the End height and composition generators.madmaxoft@gmail.com2013-06-221-7/+0
| | | | | | Also made the dimension in world.ini specifiable by a string. Exported StringToDimension() and StringToBiome() to Lua API. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1621 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Dispensers dispense primed TNTmadmaxoft@gmail.com2013-06-211-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1617 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Simulators are woken up after an explosion.madmaxoft@gmail.com2013-06-211-3/+7
| | | | | | Fixes FS #391 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1615 0a769ca7-a7f5-676a-18bf-c427514a06d6
* More TNT fixes.madmaxoft@gmail.com2013-06-181-0/+3
| | | | | | | | Chain-reaction TNTs are spawned in proper coordinates (FS #390) Centralized Primed TNT entity spawning and made available to the plugins. Internal changes for better TNT performance. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1604 0a769ca7-a7f5-676a-18bf-c427514a06d6
* First attempt at fixing the inter-threading deadlocks between the tick thread and the socket threadmadmaxoft@gmail.com2013-06-151-0/+13
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1591 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added cWorld::SetSignLines(), re-exported to Lua manually to avoid ghost return valuesmadmaxoft@gmail.com2013-06-121-2/+5
| | | | | | FS #364 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1582 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed previous commit.nielsbreu@gmail.com2013-06-091-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1573 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added SetTicksUntilWeatherChange/GetTicksUntilWeatherChange. to set/get the amount of ticks before the weather changes. Added SendBlockChange to Lua to create "fake" blocksnielsbreu@gmail.com2013-06-091-2/+8
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1572 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Implemented droppersmadmaxoft@gmail.com2013-05-261-1/+13
| | | | | | Added a common ancestor class "DropSpenser" that has the common code for dropper and dispenser and is Lua-accessible, too. The Debuggers plugin now triggers both droppers and dispensers when rclking them with a redstone torch. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1514 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed the cWorld:DoWithChestAt(), DoWithDispenserAt() and DoWithFurnaceAt() callbacks binding.madmaxoft@gmail.com2013-05-251-2/+2
| | | | | | They are now doing what the comment said they are doing. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1506 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Tiny formatting fix of rev 1463madmaxoft@gmail.com2013-05-091-5/+3
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1467 0a769ca7-a7f5-676a-18bf-c427514a06d6
* function SpawnItemPickups is now exported to Lua. Lua is able to create a Items object.nielsbreu@gmail.com2013-05-091-1/+7
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1463 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Initial implementation of explosions and TNT blockkeyboard.osh@gmail.com2013-04-181-0/+3
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1392 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Proper entity removal functionsmadmaxoft@gmail.com2013-04-131-4/+3
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1386 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Rewritten entities so that they are owned by individual chunks and ticked within their chunk's Tick()madmaxoft@gmail.com2013-04-131-22/+22
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1385 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added carrots and potatoes handling, bonemealing and proper lighting.madmaxoft@gmail.com2013-04-051-2/+4
| | | | | | FS #166 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1359 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added support for the packet #28 (0x1C): ENTITY_VELOCITYkeyboard.osh@gmail.com2013-03-181-0/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1283 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Initial nether composition generatormadmaxoft@gmail.com2013-03-111-5/+15
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1266 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Player can sit in minecarts (but not move them yet)madmaxoft@gmail.com2013-03-031-0/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1249 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Rewritten SandSimulator to use direct chunk access; and sand falling on torches now creates a pickup.madmaxoft@gmail.com2013-03-021-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1240 0a769ca7-a7f5-676a-18bf-c427514a06d6
* New fire simulator, fully rewritten to the new scheme of things, directly accessing chunk data.madmaxoft@gmail.com2013-03-011-0/+3
| | | | | | http://forum.mc-server.org/showthread.php?tid=617&pid=6626#pid6626 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1233 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Simulators now have direct access to the cChunk object in the WakeUp() callmadmaxoft@gmail.com2013-02-281-0/+3
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1227 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added HOOK_WEATHER_CHANGING.madmaxoft@gmail.com2013-02-131-4/+13
| | | | | | http://www.mc-server.org/support/index.php?do=details&task_id=299 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1210 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a GetClassStatic function to all entities, as well as cFurnaceEntity, cChestEntity and cWorldfaketruth2013-02-031-0/+5
| | | | | | | Using templates to generate ForEach* functions instead of MACROS Better error reporting in ForEach* functions git-svn-id: http://mc-server.googlecode.com/svn/trunk@1191 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Simplified cWorld::FindAndDoWithPlayer()madmaxoft@gmail.com2013-02-011-1/+1
| | | | | | It should still work the same - call the callback for the player with the most similar name. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1184 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Merged branch "branches/hooks" into "trunk".madmaxoft@gmail.com2013-01-121-23/+16
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1139 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed slab usage in creative modeluksor111@gmail.com2012-12-271-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1112 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Dispensers can dispense items and liquids nowluksor111@gmail.com2012-12-261-0/+6
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1105 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Replaced "const double &" with plain "double" for simplicitymadmaxoft@gmail.com2012-12-211-5/+7
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1085 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added dispensers (they can't dispense items yet)luksor111@gmail.com2012-12-191-4/+6
| | | | | | | | Fixed crash when digging snow Moved BlockPlace hook check, so Core plugin will no longer block item usage Player chat messages are now visible in the console git-svn-id: http://mc-server.googlecode.com/svn/trunk@1081 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed an unused obsolete function chain - cWorld::GetChunkBlockData()madmaxoft@gmail.com2012-11-111-3/+0
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1036 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Refactored the world time.madmaxoft@gmail.com2012-11-011-18/+43
| | | | | | Now it is stored in two values - WorldAge (only incremented, plugins cannot change) and TimeOfDay (plugins can change). Since sub-tick precision is needed in Tick(), we store it both as number of seconds (double) and number of ticks (Int64) is calculated off of that. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1022 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added cWorld:SpawnMob(PosX, PosY, PosZ, EntityType) to Lua APImadmaxoft@gmail.com2012-10-281-0/+3
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1014 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a valgrind warning in BlockDirt.madmaxoft@gmail.com2012-10-261-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1011 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Top blocks are now snowed over, either normally, or in deep snow (patch contributed by funmaker, Luksor and Sebi)madmaxoft@gmail.com2012-10-211-0/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1000 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added jukeboxes (patch contributed by Luksor)madmaxoft@gmail.com2012-10-211-22/+23
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@994 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Made cWorld's block query functions more orthogonal, added GetBlockInfo() returning all info on a block.madmaxoft@gmail.com2012-10-201-12/+18
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@986 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Preparation for multiple fluid simulators.madmaxoft@gmail.com2012-10-131-8/+11
| | | | | | | | | Moved all simulators into a subfolder. Replaced cWaterSimulator and cLavaSimulator with a generic cFluidSimulator. Moved original fluid simulation into cClassicFluidSimulator. Fluid simulator parameters (MaxHeight, Falloff) are read from the world.ini file (can have nether-like lava with lower falloff) git-svn-id: http://mc-server.googlecode.com/svn/trunk@956 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added delayed ticking to Lua APImadmaxoft@gmail.com2012-10-131-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@953 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added an option to disable/enable PVP on a per world basisfaketruth2012-10-101-0/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@944 0a769ca7-a7f5-676a-18bf-c427514a06d6
* BlockArea writing support (BlockTypes with BlockMeta only)madmaxoft@gmail.com2012-10-061-0/+7
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@933 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Moved blockticking into blockhandler classes.madmaxoft@gmail.com2012-10-031-1/+7
| | | | | | Also slightly refactored the variable / argument names (BlockID is deprecated, use BlockType instead) git-svn-id: http://mc-server.googlecode.com/svn/trunk@921 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Beds can be slept in now (it doesn't change the time though)faketruth2012-09-291-0/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@911 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Made beds placeablefaketruth2012-09-291-1/+2
| | | | | | Android: Updated some stuff and set default view distance lower git-svn-id: http://mc-server.googlecode.com/svn/trunk@900 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added the block dig animation packet (patch contributed by l0udPL)madmaxoft@gmail.com2012-09-251-1/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@892 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Source files cleanup: The rest of the files renamed.madmaxoft@gmail.com2012-09-241-0/+477
git-svn-id: http://mc-server.googlecode.com/svn/trunk@887 0a769ca7-a7f5-676a-18bf-c427514a06d6