#include <llhudmanager.h>
Public Member Functions | |
LLHUDManager () | |
~LLHUDManager () | |
LLHUDEffect * | createViewerEffect (const U8 type, BOOL send_to_sim=TRUE, BOOL originated_here=TRUE) |
void | updateEffects () |
void | sendEffects () |
void | cleanupEffects () |
Static Public Member Functions | |
static void | shutdownClass () |
static void | processViewerEffect (LLMessageSystem *mesgsys, void **user_data) |
Static Public Attributes | |
static LLColor4 | sParentColor |
static LLColor4 | sChildColor |
Protected Attributes | |
LLDynamicArrayPtr< LLPointer < LLHUDEffect > > | mHUDEffects |
Definition at line 47 of file llhudmanager.h.
LLHUDManager::LLHUDManager | ( | ) |
Definition at line 51 of file llhudmanager.cpp.
References gColors, and LLControlGroup::getColor().
LLHUDManager::~LLHUDManager | ( | ) |
Definition at line 59 of file llhudmanager.cpp.
LLHUDEffect * LLHUDManager::createViewerEffect | ( | const U8 | type, | |
BOOL | send_to_sim = TRUE , |
|||
BOOL | originated_here = TRUE | |||
) |
Definition at line 133 of file llhudmanager.cpp.
References LLHUDObject::addHUDEffect(), LLUUID::generate(), mHUDEffects, NULL, LLDynamicArray< Type, BlockSize >::put(), LLHUDEffect::setID(), LLHUDEffect::setNeedsSendToSim(), and LLHUDEffect::setOriginatedHere().
Referenced by LLToolPlacer::addObject(), LLToolDragAndDrop::commitGiveInventoryCategory(), LLToolDragAndDrop::commitGiveInventoryItem(), LLSelectMgr::confirmDelete(), LLToolDragAndDrop::dad3dTextureObject(), derez_objects(), LLToolDragAndDrop::dropInventory(), LLToolDragAndDrop::dropObject(), LLToolDragAndDrop::dropScript(), idle_startup(), LLVOAvatar::idleUpdate(), LLVOAvatar::LLVOAvatar(), LLToolPie::pickAndShowMenu(), process_teleport_finish(), processViewerEffect(), LLAppViewer::requestQuit(), LLSelectMgr::selectionSetImage(), LLAgent::setAvatarObject(), LLAgent::setLookAt(), and LLAgent::setPointAt().
void LLHUDManager::updateEffects | ( | ) |
Definition at line 64 of file llhudmanager.cpp.
References LLDynamicArray< Type, BlockSize >::count(), LLFastTimer::FTM_HUD_EFFECTS, i, LLHUDEffect::isDead(), mHUDEffects, S32, and LLHUDEffect::update().
Referenced by display().
void LLHUDManager::sendEffects | ( | ) |
Definition at line 79 of file llhudmanager.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_Effect, _PREHASH_SessionID, _PREHASH_ViewerEffect, LLMessageSystem::addUUIDFast(), LLDynamicArray< Type, BlockSize >::count(), FALSE, gAgent, LLAgent::getID(), LLHUDEffect::getNeedsSendToSim(), LLHUDEffect::getOriginatedHere(), LLAgent::getSessionID(), gMessageSystem, i, LLHUDEffect::isDead(), LLHUDObject::LL_HUD_EFFECT_BEAM, llendl, llwarns, mHUDEffects, LLHUDObject::mType, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), LLHUDEffect::packData(), S32, LLAgent::sendMessage(), and LLHUDEffect::setNeedsSendToSim().
Referenced by LLAppViewer::idle(), idle_startup(), process_teleport_finish(), and LLAppViewer::requestQuit().
void LLHUDManager::cleanupEffects | ( | ) |
Definition at line 116 of file llhudmanager.cpp.
References LLDynamicArray< Type, BlockSize >::count(), i, mHUDEffects, LLDynamicArray< Type, BlockSize >::remove(), and S32.
Referenced by LLAppViewer::idle().
void LLHUDManager::shutdownClass | ( | ) | [static] |
Definition at line 111 of file llhudmanager.cpp.
References LLSingleton< LLHUDManager >::getInstance(), mHUDEffects, and LLDynamicArray< Type, BlockSize >::reset().
Referenced by LLAppViewer::cleanup().
void LLHUDManager::processViewerEffect | ( | LLMessageSystem * | mesgsys, | |
void ** | user_data | |||
) | [static] |
Definition at line 154 of file llhudmanager.cpp.
References _PREHASH_Effect, LLDynamicArray< Type, BlockSize >::count(), createViewerEffect(), FALSE, LLHUDEffect::getID(), LLHUDEffect::getIDType(), LLSingleton< LLHUDManager >::getInstance(), LLMessageSystem::getNumberOfBlocksFast(), LLHUDObject::getType(), gNoRender, i, LLHUDEffect::isDead(), llendl, llwarns, mHUDEffects, NULL, LLDynamicArray< Type, BlockSize >::remove(), S32, and LLHUDEffect::unpackData().
Referenced by register_viewer_callbacks().
LLColor4 LLHUDManager::sParentColor [static] |
Definition at line 63 of file llhudmanager.h.
LLColor4 LLHUDManager::sChildColor [static] |
Definition at line 64 of file llhudmanager.h.
LLDynamicArrayPtr<LLPointer<LLHUDEffect> > LLHUDManager::mHUDEffects [protected] |
Definition at line 67 of file llhudmanager.h.
Referenced by cleanupEffects(), createViewerEffect(), processViewerEffect(), sendEffects(), shutdownClass(), and updateEffects().