aboutsummaryrefslogtreecommitdiff
path: root/src/game/GridNotifiersImpl.h
AgeCommit message (Collapse)Author
2010-05-30Cleaned up and unified various sort predicates and moved them to Trinity ↵Xanadu
namespace, replaced priority queues with sorts and purged some unused code. --HG-- branch : trunk
2010-04-07Code style (game + scripts only):Spp
"( " --> "(" " )" --> ")" --HG-- branch : trunk
2010-04-07Code style (game + scripts only):Spp
"if(" --> "if (" --HG-- branch : trunk
2010-04-07Code style (game + scripts only):Spp
"for(" --> "for (" --HG-- branch : trunk
2010-02-27Update visibility systemsilver1ce
*visibility updates and ai relocations processed simultaneously for each grid *these operations now are not synchronized for different grids *some changes into structure of visibility notifiers --HG-- branch : trunk
2010-02-05A great purge of obsolete macros.Xanadu
--HG-- branch : trunk
2010-01-23* Remove CellLock class and all cell-level thread locking.XTZGZoReX
** It was wasting CPU power as cell-level locking is not needed. ** Our multithreading is on map-level, not cell-level. ** CellLock was just a 'proxy' between Cell and CellPair and in some cases carried redundant data. ** Some minor cleanup in Cell::Visit/Map::Visit. --HG-- branch : trunk
2010-01-16Updated copyright for new year.n0n4m3
--HG-- branch : trunk
2010-01-10dropped old code, which unused since new visibility system implementedsilver1ce
--HG-- branch : trunk
2010-01-10Update aura system:QAston
* Change system logic - unify Auras, AreaAuras and PersistentAreaAuras: * Aura has now its owner - which is the WorldObject, which applies aura (creates AuraApplication object) dependant on aura radius, and effect type * Owner can be Dynobj (DynObjAura class) for PersistentAreaAuras, or Unit (UnitAura class) for Area and nonArea auras * Aura data is shared for all units which have AuraApplication of the Aura * Because of that AuraEffect handlers , and periodic tick functions can't modify AuraEffect object (they are const now) * Remove spell source and AreaAuraEffect classes * Add AuraEffect::UpdatePeriodic function, to allow periodic aura object modification (target independant) * Add AuraEffect::CalculateAmount and AuraEffect::CalculateSpellMod function, to allow non-default amount calculation * AreaAura updates are done in owner _UpdateSpells cycle * Since now you don't need to wait an aura update cycle to get area aura applied on it's correct target list * And you can access area aura target list * Add basic support for aura amount recalculation * Save recalculation state and base amount of auras to db * Add AuraEffect::CalculatePeriodic function to determine if aura is periodic, and to set correct tick number after aura is loaded from db * Add ChangeAmount function in addition to SetAmount function, to allow easy reapplication of AuraEffect handlers on all targets * Sort aura effect handlers in SpellAuras.cpp and .h by their use * Add check for already existing aura of that type to some AuraEffect handlers, to prevent incorrect effect removal * SPELL_AURA_CONVERT_RUNE and MOD_POWER_REGEN and MOD_REGEN hacky handlers are now implemented correctly * Send aura application client update only once per unit update - prevent unnecesary packet spam * Fix ByteBuffer::appendPackGUID function - it added additionall 0s at the end of the packet * Fix memory leak at player creation (not deleted auras) * Updated some naming conventions (too many to mention) * Added Unit::GetAuraOfRankedSpell() function * Remove procflags on aura remove, use Aura::HandleAuraSpecificMods instead * Added functions to maintain owned auras (GetOwnedAuras, GetOwnedAura, RemoveOwnedAura, etc) * Implement AURA_INTERRUPT_FLAG_LANDING * Implement EffectPlayerNotification (thanks to Spp) * Remove wrong aura 304 handler * Add better handler for death runes * Remove unnecesary variables from DynamicObject class, and cleanup related code, link dynobj duration with aura * Add GetAuraEffectTriggerTarget function in CreatureAi for special target selection for periodic trigger auras used in a script * Add many assert() procection from idiots using some functions in wrong way * I am to lazy to write here anything more Thanks to Visagalis for testing this patch PS: Do not make patches like this, please --HG-- branch : trunk
2009-12-20*apply trinity style to whole sourceRat
*comment out all mangos to trinity defines *this will make merging a little harder, but code will be more clear --HG-- branch : trunk
2009-12-19Implement new visibility system, based on Silverice patch for mangosn0n4m3
--HG-- branch : trunk
2009-11-20*Some cleanup (mostly whitespace changes)maximius
--HG-- branch : trunk
2009-10-18*Cleanupmaximius
--HG-- branch : trunk
2009-10-17*Massive cleanup redux.maximius
--HG-- branch : trunk
2009-10-17*Backed out changeset 3be01fb200a5maximius
--HG-- branch : trunk
2009-10-17*Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and ↵maximius
some other cleanups by hand) *Fix a possible crash in Spell::DoAllEffectOnTarget --HG-- branch : trunk
2009-09-02*Try to fix the bug that creature does not regenerate after evade.megamage
--HG-- branch : trunk
2009-08-27*Use one dynobj to handle multiple aura effects.megamage
--HG-- branch : trunk
2009-08-24*Some update of aura system. Remove unnecessary variables and parameters ↵megamage
from auraeffect. Always refer to parent aura when finding target/source/caster. --HG-- branch : trunk
2009-08-23*Allow to change creature's sight distance because 50 yards are too small ↵megamage
for some scripts. --HG-- branch : trunk
2009-08-06Merge [SD2]Kudlaty
r1114 Added two new struct ObjectDistanceOrder/ObjectDistanceOrderReversed for generic use sorting objects by GetDistanceOrder() r1115 Remove obsolete code in misc scripts and use struct ObjectDistanceOrder/Reversed instead r1116 Added script for mob 24079 + related instance script - skip (already have it better) r1117 Update DoPlaySoundToSet function and allow WorldObject as source for sound. r1118 Correcting end bosses scripts in SM cathedral r1119 Added basic scripts w/texts for bosses in utgarde keep --HG-- branch : trunk
2009-05-29*Update OutdoorPvP functions. No longer need creature triggers for capture ↵megamage
points. --HG-- branch : trunk
2009-05-17 [7836] Fixes for distance range checks. Author: VladimirMangosmegamage
* ignore 0.0f min range limit (this correct case when 2 object overlapped) Also use int32 for temporary store GetSessionDbLocaleIndex result. --HG-- branch : trunk
2009-05-10*Show correct duration for persistent aura.megamage
--HG-- branch : trunk
2009-05-09*Do not allow persistant auras from the same caster stack on target.megamage
--HG-- branch : trunk
2009-05-03*Merge.megamage
--HG-- branch : trunk
2009-05-03*Only update object which are in world.megamage
--HG-- branch : trunk
2009-05-02*Merge.megamage
*Also fix build in VC7 and VC8. --HG-- branch : trunk
2009-05-02*Update spell selection.megamage
--HG-- branch : trunk
2009-04-30*Merge.megamage
--HG-- branch : trunk
2009-04-30*Explicitly implement spell target 28 and 29.megamage
--HG-- branch : trunk
2009-04-06* Trailing whitespace removed.XTZGZoReX
--HG-- branch : trunk
2009-04-06*Update of aura system.QAston
--HG-- branch : trunk
2009-04-04*Merge.megamage
--HG-- branch : trunk
2009-04-02*Also call combatstart when applying areaaura/persistant auramegamage
--HG-- branch : trunk
2009-03-18*Merge with 243.megamage
--HG-- branch : trunk
2009-03-17*Fix build.megamage
--HG-- branch : trunk
2009-03-17*Fix a bug that redundant packets are sent to clients which may cause freeze.megamage
--HG-- branch : trunk
2009-03-12*Merge.megamage
--HG-- branch : trunk
2009-03-12*Let persistant auras affect ally targets in some cases.megamage
--HG-- branch : trunk
2009-03-11*Merge.megamage
--HG-- branch : trunk
2009-03-11*Fix a crash bug.megamage
--HG-- branch : trunk
2009-03-09*Support localization for messsages in battleground. Author: VladimirMangosmegamage
[7411] Use similar localization classes for World::SendWorldText muti-line message. Author: VladimirMangos --HG-- branch : trunk
2009-03-08*Merge.megamage
--HG-- branch : trunk
2009-03-08*Fix a bug about visibility update.megamage
--HG-- branch : trunk
2009-03-08*Merge.megamage
--HG-- branch : trunk rename : sql/updates/XXX_characters_auctionhouse.sql => sql/updates/1164_characters.sql
2009-03-08*Update of relocation notify code.megamage
--HG-- branch : trunk
2009-03-06*Merge.megamage
--HG-- branch : trunk
2009-03-05*Disable charmed/possessed creature AI.megamage
*Use general react states to replace charminfo react states. --HG-- branch : trunk