aboutsummaryrefslogtreecommitdiff
path: root/src/game/Object.cpp
AgeCommit message (Collapse)Author
2010-02-03*Move object's field\visibility update functions to object from accessorsilver1ce
removed useless SendUpdateObjectToAllExcept - anyway fields will be updated, there is no sense to force update them --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-22*Prevent assertion fail in Unit::_AddAura after creature add to remove list.QAston
--HG-- branch : trunk
2010-01-18*Remove some of no longer needed debug code.QAston
--HG-- branch : trunk
2010-01-18*Cleanups before delete after not successfull load pet from db. Thanks to ↵QAston
Drahy for debug traces. --HG-- branch : trunk
2010-01-18*Add some debug info to trac reason of assertion fail in Unit destructor.QAston
--HG-- branch : trunk
2010-01-16Updated copyright for new year.n0n4m3
--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-20Mergen0n4m3
--HG-- branch : trunk
2009-12-20fix visual bug that flying creatures displayed as walking at placen0n4m3
--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-19Fixed some typos and revert one commitn0n4m3
--HG-- branch : trunk
2009-12-19Remove trainer npcflags for player that can not train from npc. by NoFantasyn0n4m3
--HG-- branch : trunk
2009-12-19Avoid not needed too oftent send update data, cleanups. by SilverIcen0n4m3
--HG-- branch : trunk
2009-12-19Implement new visibility system, based on Silverice patch for mangosn0n4m3
--HG-- branch : trunk
2009-12-17[9012] fix crash when achievement is completed and player isn't in worldn0n4m3
--HG-- branch : trunk
2009-12-17Update some code for 322an0n4m3
--HG-- branch : trunk
2009-12-14Fix Dancing Rune Weapon. By liberate, closes #365spp
--HG-- branch : trunk
2009-11-27Apply #412.Kudlaty
Add support to gameobject type Transport (11) that should stop like Orgrimmar arena Elevators or pilars. Patch by Spp and Opterman --HG-- branch : trunk
2009-11-22*Cleanup, fix a few warnings, and make the SD2 grid searchers just pass ↵maximius
through to the standard Trinity grid searchers, as they have identical functionality. Thanks thmarth. Closes #387, #388 --HG-- branch : trunk
2009-11-20*Some cleanup (mostly whitespace changes)maximius
--HG-- branch : trunk
2009-10-31*Reinit the iterator in each loop as the iter is removed from the list, in ↵maximius
AuctionHouseObject::Update, by Trazom *No longer disregard z/o in Map::CreatureRelocation, thanks Sisif *Cleanup, and make Divine Storm default to m_caster is no unitTarget is available *Some mtmaps optimization --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-27*Merge [8524] New cell search algorithm implemented. You can now choose ↵maximius
different visibility distances on continents, in BG/Arenas and instances. Author: Ambal *Some warning cleanup --HG-- branch : trunk
2009-09-21Reapply patch about changing modelid_a/h(2) values to modelid1..4, display ↵Kudlaty
ids are no longer incorrectly chosen based on player faction. --HG-- branch : trunk
2009-09-04Fix some issues with game object create according to last patch. Thx to ↵Kudlaty
NoFantasy and DearScorpion --HG-- branch : trunk
2009-09-03Fix bug with going trough things on login. Thanks to Opterman and NofantasyKudlaty
--HG-- branch : trunk
2009-09-02[FIX] Energy/Mana Regeneration By HiZedmegamage
--HG-- branch : trunk
2009-08-29*More update about positions.megamage
*Ulduar: do not allow demolisher to regenerate pyrite. Player must shoot down and grab the containers to refill pyrite. --HG-- branch : trunk
2009-08-29*Make position as a class;megamage
--HG-- branch : trunk
2009-08-28*Fix a crash caused by gm command .object move and so onmegamage
--HG-- branch : trunk
2009-08-26*Add some crash log.megamage
--HG-- branch : trunk
2009-08-26*Some clean up and add debug info to find the reason of crash.megamage
--HG-- branch : trunk
2009-08-25*Do not reset map id in resetmap.megamage
--HG-- branch : trunk
2009-08-25*Do not make getmapid virtual function to improve speed.megamage
--HG-- branch : trunk
2009-08-24*Fix some summon vehicle spells.megamage
--HG-- branch : trunk
2009-08-23*Update vehicle system. Make vehicle a seperate class from creature.megamage
--HG-- branch : trunk
2009-08-23*Some update of spell target selection.megamage
--HG-- branch : trunk
2009-08-23*Do not always set faction in summonvehicle function.megamage
--HG-- branch : trunk
2009-08-19*Set vehicle owner guid and faction in summonvehicle instead of ↵megamage
spelleffecthandler. --HG-- branch : trunk
2009-08-13*Do not assert !map for non-corpse worldobjects.megamage
--HG-- branch : trunk
2009-08-13*Add an assert in ~worldobjectmegamage
--HG-- branch : trunk
2009-08-12*Rewrite and simplify sendmessagetoset functions. This fixes the bug that ↵megamage
player cannot see dummy aura is cancelled when puppet is far away. --HG-- branch : trunk
2009-08-12*first remove corpse from world then resetmapmegamage
--HG-- branch : trunk
2009-08-12*Fix a crash caused by addnpc command.megamage
--HG-- branch : trunk
2009-08-11*Add some asserts back.megamage
--HG-- branch : trunk
2009-08-11*ResetMap for worldobjects when map is deleted.megamage
--HG-- branch : trunk