mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-17 05:29:43 -04:00
First step of comment style refactoring to doxygen-style.
This commit is contained in:
@@ -428,8 +428,8 @@ void GameObject::Update(uint32 diff)
|
||||
|
||||
bool IsBattlegroundTrap = false;
|
||||
//FIXME: this is activation radius (in different casting radius that must be selected from spell data)
|
||||
//TODO: move activated state code (cast itself) to GO_ACTIVATED, in this place only check activating and set state
|
||||
float radius = (float)(goInfo->trap.radius)/3*2; // TODO rename radius to diameter (goInfo->trap.radius) should be (goInfo->trap.diameter)
|
||||
/// @todo move activated state code (cast itself) to GO_ACTIVATED, in this place only check activating and set state
|
||||
float radius = (float)(goInfo->trap.radius)/3*2; /// @todo rename radius to diameter (goInfo->trap.radius) should be (goInfo->trap.diameter)
|
||||
if (!radius)
|
||||
{
|
||||
if (goInfo->trap.cooldown != 3) // cast in other case (at some triggering/linked go/etc explicit call)
|
||||
@@ -945,7 +945,7 @@ bool GameObject::ActivateToQuest(Player* target) const
|
||||
{
|
||||
if (LootTemplates_Gameobject.HaveQuestLootForPlayer(GetGOInfo()->GetLootId(), target))
|
||||
{
|
||||
//TODO: fix this hack
|
||||
/// @todo fix this hack
|
||||
//look for battlegroundAV for some objects which are only activated after mine gots captured by own team
|
||||
if (GetEntry() == BG_AV_OBJECTID_MINE_N || GetEntry() == BG_AV_OBJECTID_MINE_S)
|
||||
if (Battleground* bg = target->GetBattleground())
|
||||
@@ -1353,12 +1353,12 @@ void GameObject::Use(Unit* user)
|
||||
{
|
||||
player->UpdateFishingSkill();
|
||||
|
||||
//TODO: I do not understand this hack. Need some explanation.
|
||||
/// @todo I do not understand this hack. Need some explanation.
|
||||
// prevent removing GO at spell cancel
|
||||
RemoveFromOwner();
|
||||
SetOwnerGUID(player->GetGUID());
|
||||
|
||||
//TODO: find reasonable value for fishing hole search
|
||||
/// @todo find reasonable value for fishing hole search
|
||||
GameObject* ok = LookupFishingHoleAround(20.0f + CONTACT_DISTANCE);
|
||||
if (ok)
|
||||
{
|
||||
@@ -1368,7 +1368,7 @@ void GameObject::Use(Unit* user)
|
||||
else
|
||||
player->SendLoot(GetGUID(), LOOT_FISHING);
|
||||
}
|
||||
// TODO: else: junk
|
||||
/// @todo else: junk
|
||||
else
|
||||
m_respawnTime = time(NULL);
|
||||
|
||||
@@ -1831,7 +1831,7 @@ void GameObject::ModifyHealth(int32 change, Unit* attackerOrHealer /*= NULL*/, u
|
||||
Player* player = attackerOrHealer->GetCharmerOrOwnerPlayerOrPlayerItself();
|
||||
|
||||
// dealing damage, send packet
|
||||
// TODO: is there any packet for healing?
|
||||
/// @todo is there any packet for healing?
|
||||
if (change < 0 && player)
|
||||
{
|
||||
WorldPacket data(SMSG_DESTRUCTIBLE_BUILDING_DAMAGE, 8 + 8 + 8 + 4 + 4);
|
||||
|
||||
Reference in New Issue
Block a user