LLViewerGesture Class Reference

#include <llviewergesture.h>

Inheritance diagram for LLViewerGesture:

Inheritance graph
Collaboration diagram for LLViewerGesture:

Collaboration graph
List of all members.

Public Member Functions

 LLViewerGesture ()
 LLViewerGesture (KEY key, MASK mask, const std::string &trigger, const LLUUID &sound_item_id, const std::string &animation, const std::string &output_string)
 LLViewerGesture (U8 **buffer, S32 max_size)
 LLViewerGesture (const LLViewerGesture &gesture)
virtual BOOL trigger (KEY key, MASK mask)
virtual BOOL trigger (const std::string &string)
void doTrigger (BOOL send_chat)

Static Protected Attributes

static const F32 SOUND_VOLUME = 1.f

Detailed Description

Definition at line 43 of file llviewergesture.h.

Constructor & Destructor Documentation

LLViewerGesture::LLViewerGesture (  ) 

Definition at line 55 of file llviewergesture.cpp.

LLViewerGesture::LLViewerGesture ( KEY  key,
MASK  mask,
const std::string &  trigger,
const LLUUID sound_item_id,
const std::string &  animation,
const std::string &  output_string 

Definition at line 59 of file llviewergesture.cpp.

LLViewerGesture::LLViewerGesture ( U8 **  buffer,
S32  max_size 

Definition at line 67 of file llviewergesture.cpp.

LLViewerGesture::LLViewerGesture ( const LLViewerGesture gesture  ) 

Definition at line 72 of file llviewergesture.cpp.

Member Function Documentation

void LLViewerGesture::doTrigger ( BOOL  send_chat  ) 

Definition at line 107 of file llviewergesture.cpp.

References ANIM_REQUEST_START, CHAT_TYPE_NORMAL, FALSE, gAgent, gAnimLibrary, gChatBar, LLInventoryItem::getAssetUUID(), LLInventoryModel::getItem(), gInventory, LLGesture::mAnimation, LLGesture::mOutputString, LLGesture::mSoundItemID, LLUUID::null, send_sound_trigger(), LLAgent::sendAnimationRequest(), LLChatBar::sendChatFromViewer(), LLAgent::setAFK(), SOUND_VOLUME, and LLAnimationLibrary::stringToAnimState().

Referenced by trigger().

BOOL LLViewerGesture::trigger ( const std::string &  string  )  [virtual]

Definition at line 91 of file llviewergesture.cpp.

References doTrigger(), FALSE, LLGesture::mTriggerLower, and TRUE.

BOOL LLViewerGesture::trigger ( KEY  key,
MASK  mask 
) [virtual]

Reimplemented from LLGesture.

Definition at line 77 of file llviewergesture.cpp.

References doTrigger(), FALSE, LLGesture::mKey, LLGesture::mMask, and TRUE.

Member Data Documentation

const F32 LLViewerGesture::SOUND_VOLUME = 1.f [static, protected]

Definition at line 63 of file llviewergesture.h.

Referenced by doTrigger().

The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:57 2010 for Second Life Viewer by  doxygen 1.4.7