llagentconstants.h File Reference

Shared constants through the system for agents. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define ATTACHMENT_ID_FROM_STATE(state)   ((S32)((((U8)state & AGENT_ATTACH_MASK) >> 4) | (((U8)state & ~AGENT_ATTACH_MASK) << 4)))

Variables

const U32 CONTROL_AT_POS_INDEX = 0
const U32 CONTROL_AT_NEG_INDEX = 1
const U32 CONTROL_LEFT_POS_INDEX = 2
const U32 CONTROL_LEFT_NEG_INDEX = 3
const U32 CONTROL_UP_POS_INDEX = 4
const U32 CONTROL_UP_NEG_INDEX = 5
const U32 CONTROL_PITCH_POS_INDEX = 6
const U32 CONTROL_PITCH_NEG_INDEX = 7
const U32 CONTROL_YAW_POS_INDEX = 8
const U32 CONTROL_YAW_NEG_INDEX = 9
const U32 CONTROL_FAST_AT_INDEX = 10
const U32 CONTROL_FAST_LEFT_INDEX = 11
const U32 CONTROL_FAST_UP_INDEX = 12
const U32 CONTROL_FLY_INDEX = 13
const U32 CONTROL_STOP_INDEX = 14
const U32 CONTROL_FINISH_ANIM_INDEX = 15
const U32 CONTROL_STAND_UP_INDEX = 16
const U32 CONTROL_SIT_ON_GROUND_INDEX = 17
const U32 CONTROL_MOUSELOOK_INDEX = 18
const U32 CONTROL_NUDGE_AT_POS_INDEX = 19
const U32 CONTROL_NUDGE_AT_NEG_INDEX = 20
const U32 CONTROL_NUDGE_LEFT_POS_INDEX = 21
const U32 CONTROL_NUDGE_LEFT_NEG_INDEX = 22
const U32 CONTROL_NUDGE_UP_POS_INDEX = 23
const U32 CONTROL_NUDGE_UP_NEG_INDEX = 24
const U32 CONTROL_TURN_LEFT_INDEX = 25
const U32 CONTROL_TURN_RIGHT_INDEX = 26
const U32 CONTROL_AWAY_INDEX = 27
const U32 CONTROL_LBUTTON_DOWN_INDEX = 28
const U32 CONTROL_LBUTTON_UP_INDEX = 29
const U32 CONTROL_ML_LBUTTON_DOWN_INDEX = 30
const U32 CONTROL_ML_LBUTTON_UP_INDEX = 31
const U32 TOTAL_CONTROLS = 32
const U32 AGENT_CONTROL_AT_POS = 0x1 << CONTROL_AT_POS_INDEX
const U32 AGENT_CONTROL_AT_NEG = 0x1 << CONTROL_AT_NEG_INDEX
const U32 AGENT_CONTROL_LEFT_POS = 0x1 << CONTROL_LEFT_POS_INDEX
const U32 AGENT_CONTROL_LEFT_NEG = 0x1 << CONTROL_LEFT_NEG_INDEX
const U32 AGENT_CONTROL_UP_POS = 0x1 << CONTROL_UP_POS_INDEX
const U32 AGENT_CONTROL_UP_NEG = 0x1 << CONTROL_UP_NEG_INDEX
const U32 AGENT_CONTROL_PITCH_POS = 0x1 << CONTROL_PITCH_POS_INDEX
const U32 AGENT_CONTROL_PITCH_NEG = 0x1 << CONTROL_PITCH_NEG_INDEX
const U32 AGENT_CONTROL_YAW_POS = 0x1 << CONTROL_YAW_POS_INDEX
const U32 AGENT_CONTROL_YAW_NEG = 0x1 << CONTROL_YAW_NEG_INDEX
const U32 AGENT_CONTROL_FAST_AT = 0x1 << CONTROL_FAST_AT_INDEX
const U32 AGENT_CONTROL_FAST_LEFT = 0x1 << CONTROL_FAST_LEFT_INDEX
const U32 AGENT_CONTROL_FAST_UP = 0x1 << CONTROL_FAST_UP_INDEX
const U32 AGENT_CONTROL_FLY = 0x1 << CONTROL_FLY_INDEX
const U32 AGENT_CONTROL_STOP = 0x1 << CONTROL_STOP_INDEX
const U32 AGENT_CONTROL_FINISH_ANIM = 0x1 << CONTROL_FINISH_ANIM_INDEX
const U32 AGENT_CONTROL_STAND_UP = 0x1 << CONTROL_STAND_UP_INDEX
const U32 AGENT_CONTROL_SIT_ON_GROUND = 0x1 << CONTROL_SIT_ON_GROUND_INDEX
const U32 AGENT_CONTROL_MOUSELOOK = 0x1 << CONTROL_MOUSELOOK_INDEX
const U32 AGENT_CONTROL_NUDGE_AT_POS = 0x1 << CONTROL_NUDGE_AT_POS_INDEX
const U32 AGENT_CONTROL_NUDGE_AT_NEG = 0x1 << CONTROL_NUDGE_AT_NEG_INDEX
const U32 AGENT_CONTROL_NUDGE_LEFT_POS = 0x1 << CONTROL_NUDGE_LEFT_POS_INDEX
const U32 AGENT_CONTROL_NUDGE_LEFT_NEG = 0x1 << CONTROL_NUDGE_LEFT_NEG_INDEX
const U32 AGENT_CONTROL_NUDGE_UP_POS = 0x1 << CONTROL_NUDGE_UP_POS_INDEX
const U32 AGENT_CONTROL_NUDGE_UP_NEG = 0x1 << CONTROL_NUDGE_UP_NEG_INDEX
const U32 AGENT_CONTROL_TURN_LEFT = 0x1 << CONTROL_TURN_LEFT_INDEX
const U32 AGENT_CONTROL_TURN_RIGHT = 0x1 << CONTROL_TURN_RIGHT_INDEX
const U32 AGENT_CONTROL_AWAY = 0x1 << CONTROL_AWAY_INDEX
const U32 AGENT_CONTROL_LBUTTON_DOWN = 0x1 << CONTROL_LBUTTON_DOWN_INDEX
const U32 AGENT_CONTROL_LBUTTON_UP = 0x1 << CONTROL_LBUTTON_UP_INDEX
const U32 AGENT_CONTROL_ML_LBUTTON_DOWN = 0x1 << CONTROL_ML_LBUTTON_DOWN_INDEX
const U32 AGENT_CONTROL_ML_LBUTTON_UP = ((U32)0x1) << CONTROL_ML_LBUTTON_UP_INDEX
const U32 AGENT_CONTROL_AT
const U32 AGENT_CONTROL_LEFT
const U32 AGENT_CONTROL_UP
const U32 AGENT_CONTROL_HORIZONTAL
const U32 AGENT_CONTROL_NOT_USED_BY_LSL
const U32 AGENT_CONTROL_MOVEMENT
const U32 AGENT_CONTROL_ROTATION
const U32 AGENT_CONTROL_NUDGE
const U32 AGENT_ATTACH_OFFSET = 4
const U32 AGENT_ATTACH_MASK = 0xf << AGENT_ATTACH_OFFSET
const U32 AGENT_ATTACH_CLEAR = 0x00
const U32 AGENT_CAMERA_OBJECT = 0x1 << 3
const F32 MAX_ATTACHMENT_DIST = 3.5f


Detailed Description

Shared constants through the system for agents.

Author:
James Cook, Andrew Meadows, Richard Nelson
LicenseInfo
firstyear=2006&license=viewergpl

Copyright (c) 2006-2007, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file llagentconstants.h.


Define Documentation

#define ATTACHMENT_ID_FROM_STATE ( state   )     ((S32)((((U8)state & AGENT_ATTACH_MASK) >> 4) | (((U8)state & ~AGENT_ATTACH_MASK) << 4)))

Definition at line 157 of file llagentconstants.h.

Referenced by LLVOAvatar::getTargetAttachmentPoint(), LLAttachmentEnableDrop::handleEvent(), and LLVOVolume::isHUDAttachment().


Variable Documentation

const U32 AGENT_ATTACH_CLEAR = 0x00

Definition at line 153 of file llagentconstants.h.

const U32 AGENT_ATTACH_MASK = 0xf << AGENT_ATTACH_OFFSET

Definition at line 152 of file llagentconstants.h.

const U32 AGENT_ATTACH_OFFSET = 4

Definition at line 151 of file llagentconstants.h.

const U32 AGENT_CAMERA_OBJECT = 0x1 << 3

Definition at line 160 of file llagentconstants.h.

const U32 AGENT_CONTROL_AT

Initial value:

Definition at line 108 of file llagentconstants.h.

const U32 AGENT_CONTROL_AT_NEG = 0x1 << CONTROL_AT_NEG_INDEX

Definition at line 71 of file llagentconstants.h.

Referenced by LLAgent::autoPilot(), and LLAgent::moveAt().

const U32 AGENT_CONTROL_AT_POS = 0x1 << CONTROL_AT_POS_INDEX

Definition at line 70 of file llagentconstants.h.

Referenced by LLAgent::autoPilot(), and LLAgent::moveAt().

const U32 AGENT_CONTROL_AWAY = 0x1 << CONTROL_AWAY_INDEX

Definition at line 101 of file llagentconstants.h.

Referenced by LLAgent::clearAFK(), LLAgent::getAFK(), LLAgent::resetControlFlags(), and LLAgent::setAFK().

const U32 AGENT_CONTROL_FAST_AT = 0x1 << CONTROL_FAST_AT_INDEX

Definition at line 81 of file llagentconstants.h.

Referenced by LLAgent::autoPilot(), and LLAgent::moveAt().

const U32 AGENT_CONTROL_FAST_LEFT = 0x1 << CONTROL_FAST_LEFT_INDEX

Definition at line 82 of file llagentconstants.h.

Referenced by LLAgent::moveLeft().

const U32 AGENT_CONTROL_FAST_UP = 0x1 << CONTROL_FAST_UP_INDEX

Definition at line 83 of file llagentconstants.h.

Referenced by LLAgent::autoPilot(), and LLAgent::moveUp().

const U32 AGENT_CONTROL_FINISH_ANIM = 0x1 << CONTROL_FINISH_ANIM_INDEX

Definition at line 87 of file llagentconstants.h.

Referenced by LLAgent::onAnimStop().

const U32 AGENT_CONTROL_FLY = 0x1 << CONTROL_FLY_INDEX

Definition at line 85 of file llagentconstants.h.

Referenced by LLAgent::getFlying(), LLAgent::resetControlFlags(), LLAgent::setFlying(), and LLAgent::toggleFlying().

const U32 AGENT_CONTROL_HORIZONTAL

Initial value:

Definition at line 123 of file llagentconstants.h.

const U32 AGENT_CONTROL_LBUTTON_DOWN = 0x1 << CONTROL_LBUTTON_DOWN_INDEX

Definition at line 103 of file llagentconstants.h.

Referenced by LLTool::handleMouseDown(), and send_agent_update().

const U32 AGENT_CONTROL_LBUTTON_UP = 0x1 << CONTROL_LBUTTON_UP_INDEX

Definition at line 104 of file llagentconstants.h.

Referenced by LLTool::handleMouseUp(), and send_agent_update().

const U32 AGENT_CONTROL_LEFT

Initial value:

Definition at line 113 of file llagentconstants.h.

const U32 AGENT_CONTROL_LEFT_NEG = 0x1 << CONTROL_LEFT_NEG_INDEX

Definition at line 73 of file llagentconstants.h.

Referenced by LLAgent::moveLeft().

const U32 AGENT_CONTROL_LEFT_POS = 0x1 << CONTROL_LEFT_POS_INDEX

Definition at line 72 of file llagentconstants.h.

Referenced by LLAgent::moveLeft().

const U32 AGENT_CONTROL_ML_LBUTTON_DOWN = 0x1 << CONTROL_ML_LBUTTON_DOWN_INDEX

Definition at line 105 of file llagentconstants.h.

Referenced by LLToolCompGun::handleDoubleClick(), LLToolCompGun::handleMouseDown(), and send_agent_update().

const U32 AGENT_CONTROL_ML_LBUTTON_UP = ((U32)0x1) << CONTROL_ML_LBUTTON_UP_INDEX

Definition at line 106 of file llagentconstants.h.

Referenced by LLToolCompGun::handleMouseUp(), and send_agent_update().

const U32 AGENT_CONTROL_MOUSELOOK = 0x1 << CONTROL_MOUSELOOK_INDEX

Definition at line 90 of file llagentconstants.h.

Referenced by LLAgent::changeCameraToCustomizeAvatar(), LLAgent::changeCameraToFollow(), LLAgent::changeCameraToMouselook(), LLAgent::changeCameraToThirdPerson(), and LLAgent::resetControlFlags().

const U32 AGENT_CONTROL_MOVEMENT

Initial value:

Definition at line 134 of file llagentconstants.h.

const U32 AGENT_CONTROL_NOT_USED_BY_LSL

Initial value:

Definition at line 126 of file llagentconstants.h.

const U32 AGENT_CONTROL_NUDGE

Initial value:

Definition at line 143 of file llagentconstants.h.

const U32 AGENT_CONTROL_NUDGE_AT_NEG = 0x1 << CONTROL_NUDGE_AT_NEG_INDEX

Definition at line 93 of file llagentconstants.h.

Referenced by LLAgent::moveAtNudge().

const U32 AGENT_CONTROL_NUDGE_AT_POS = 0x1 << CONTROL_NUDGE_AT_POS_INDEX

Definition at line 92 of file llagentconstants.h.

Referenced by LLAgent::moveAtNudge().

const U32 AGENT_CONTROL_NUDGE_LEFT_NEG = 0x1 << CONTROL_NUDGE_LEFT_NEG_INDEX

Definition at line 95 of file llagentconstants.h.

Referenced by LLAgent::moveLeftNudge().

const U32 AGENT_CONTROL_NUDGE_LEFT_POS = 0x1 << CONTROL_NUDGE_LEFT_POS_INDEX

Definition at line 94 of file llagentconstants.h.

Referenced by LLAgent::moveLeftNudge().

const U32 AGENT_CONTROL_NUDGE_UP_NEG = 0x1 << CONTROL_NUDGE_UP_NEG_INDEX

Definition at line 97 of file llagentconstants.h.

const U32 AGENT_CONTROL_NUDGE_UP_POS = 0x1 << CONTROL_NUDGE_UP_POS_INDEX

Definition at line 96 of file llagentconstants.h.

const U32 AGENT_CONTROL_PITCH_NEG = 0x1 << CONTROL_PITCH_NEG_INDEX

Definition at line 77 of file llagentconstants.h.

Referenced by LLAgent::movePitch().

const U32 AGENT_CONTROL_PITCH_POS = 0x1 << CONTROL_PITCH_POS_INDEX

Definition at line 76 of file llagentconstants.h.

Referenced by LLAgent::movePitch().

const U32 AGENT_CONTROL_ROTATION

Initial value:

Definition at line 138 of file llagentconstants.h.

const U32 AGENT_CONTROL_SIT_ON_GROUND = 0x1 << CONTROL_SIT_ON_GROUND_INDEX

Definition at line 89 of file llagentconstants.h.

Referenced by near_sit_down_point(), and LLToolBar::onClickSit().

const U32 AGENT_CONTROL_STAND_UP = 0x1 << CONTROL_STAND_UP_INDEX

Definition at line 88 of file llagentconstants.h.

Referenced by LLAgent::changeCameraToCustomizeAvatar(), handle_sit_or_stand(), LLLandSit::handleEvent(), LLSelfStandUp::handleEvent(), LLToolBar::onClickSit(), and LLOverlayBar::onClickStandUp().

const U32 AGENT_CONTROL_STOP = 0x1 << CONTROL_STOP_INDEX

Definition at line 86 of file llagentconstants.h.

Referenced by LLAgent::autoPilot(), handle_agent_stop_moving(), LLAgent::lookAtObject(), LLAgent::setAFK(), stop_moving(), and LLAgent::stopAutoPilot().

const U32 AGENT_CONTROL_TURN_LEFT = 0x1 << CONTROL_TURN_LEFT_INDEX

Definition at line 98 of file llagentconstants.h.

Referenced by LLVOAvatar::updateCharacter().

const U32 AGENT_CONTROL_TURN_RIGHT = 0x1 << CONTROL_TURN_RIGHT_INDEX

Definition at line 99 of file llagentconstants.h.

Referenced by LLVOAvatar::updateCharacter().

const U32 AGENT_CONTROL_UP

Initial value:

Definition at line 118 of file llagentconstants.h.

const U32 AGENT_CONTROL_UP_NEG = 0x1 << CONTROL_UP_NEG_INDEX

Definition at line 75 of file llagentconstants.h.

Referenced by LLAgent::autoPilot(), and LLAgent::moveUp().

const U32 AGENT_CONTROL_UP_POS = 0x1 << CONTROL_UP_POS_INDEX

Definition at line 74 of file llagentconstants.h.

Referenced by LLAgent::autoPilot(), and LLAgent::moveUp().

const U32 AGENT_CONTROL_YAW_NEG = 0x1 << CONTROL_YAW_NEG_INDEX

Definition at line 79 of file llagentconstants.h.

Referenced by LLAgent::autoPilot(), and LLAgent::moveYaw().

const U32 AGENT_CONTROL_YAW_POS = 0x1 << CONTROL_YAW_POS_INDEX

Definition at line 78 of file llagentconstants.h.

Referenced by LLAgent::autoPilot(), and LLAgent::moveYaw().

const U32 CONTROL_AT_NEG_INDEX = 1

Definition at line 37 of file llagentconstants.h.

Referenced by LLAgent::backwardGrabbed().

const U32 CONTROL_AT_POS_INDEX = 0

Definition at line 36 of file llagentconstants.h.

Referenced by LLAgent::forwardGrabbed().

const U32 CONTROL_AWAY_INDEX = 27

Definition at line 63 of file llagentconstants.h.

const U32 CONTROL_FAST_AT_INDEX = 10

Definition at line 46 of file llagentconstants.h.

const U32 CONTROL_FAST_LEFT_INDEX = 11

Definition at line 47 of file llagentconstants.h.

const U32 CONTROL_FAST_UP_INDEX = 12

Definition at line 48 of file llagentconstants.h.

const U32 CONTROL_FINISH_ANIM_INDEX = 15

Definition at line 51 of file llagentconstants.h.

const U32 CONTROL_FLY_INDEX = 13

Definition at line 49 of file llagentconstants.h.

const U32 CONTROL_LBUTTON_DOWN_INDEX = 28

Definition at line 64 of file llagentconstants.h.

Referenced by LLAgent::leftButtonGrabbed().

const U32 CONTROL_LBUTTON_UP_INDEX = 29

Definition at line 65 of file llagentconstants.h.

const U32 CONTROL_LEFT_NEG_INDEX = 3

Definition at line 39 of file llagentconstants.h.

const U32 CONTROL_LEFT_POS_INDEX = 2

Definition at line 38 of file llagentconstants.h.

const U32 CONTROL_ML_LBUTTON_DOWN_INDEX = 30

Definition at line 66 of file llagentconstants.h.

Referenced by LLAgent::leftButtonGrabbed(), and LLOverlayBar::refresh().

const U32 CONTROL_ML_LBUTTON_UP_INDEX = 31

Definition at line 67 of file llagentconstants.h.

Referenced by LLOverlayBar::refresh().

const U32 CONTROL_MOUSELOOK_INDEX = 18

Definition at line 54 of file llagentconstants.h.

const U32 CONTROL_NUDGE_AT_NEG_INDEX = 20

Definition at line 56 of file llagentconstants.h.

const U32 CONTROL_NUDGE_AT_POS_INDEX = 19

Definition at line 55 of file llagentconstants.h.

const U32 CONTROL_NUDGE_LEFT_NEG_INDEX = 22

Definition at line 58 of file llagentconstants.h.

const U32 CONTROL_NUDGE_LEFT_POS_INDEX = 21

Definition at line 57 of file llagentconstants.h.

const U32 CONTROL_NUDGE_UP_NEG_INDEX = 24

Definition at line 60 of file llagentconstants.h.

const U32 CONTROL_NUDGE_UP_POS_INDEX = 23

Definition at line 59 of file llagentconstants.h.

const U32 CONTROL_PITCH_NEG_INDEX = 7

Definition at line 43 of file llagentconstants.h.

const U32 CONTROL_PITCH_POS_INDEX = 6

Definition at line 42 of file llagentconstants.h.

const U32 CONTROL_SIT_ON_GROUND_INDEX = 17

Definition at line 53 of file llagentconstants.h.

const U32 CONTROL_STAND_UP_INDEX = 16

Definition at line 52 of file llagentconstants.h.

const U32 CONTROL_STOP_INDEX = 14

Definition at line 50 of file llagentconstants.h.

const U32 CONTROL_TURN_LEFT_INDEX = 25

Definition at line 61 of file llagentconstants.h.

const U32 CONTROL_TURN_RIGHT_INDEX = 26

Definition at line 62 of file llagentconstants.h.

const U32 CONTROL_UP_NEG_INDEX = 5

Definition at line 41 of file llagentconstants.h.

Referenced by LLAgent::downGrabbed().

const U32 CONTROL_UP_POS_INDEX = 4

Definition at line 40 of file llagentconstants.h.

Referenced by LLAgent::upGrabbed().

const U32 CONTROL_YAW_NEG_INDEX = 9

Definition at line 45 of file llagentconstants.h.

Referenced by LLAgent::rotateGrabbed().

const U32 CONTROL_YAW_POS_INDEX = 8

Definition at line 44 of file llagentconstants.h.

Referenced by LLAgent::rotateGrabbed().

const F32 MAX_ATTACHMENT_DIST = 3.5f

Definition at line 162 of file llagentconstants.h.

Referenced by LLViewerJointAttachment::clampObjectPosition().

const U32 TOTAL_CONTROLS = 32

Definition at line 68 of file llagentconstants.h.

Referenced by LLAgent::anyControlGrabbed(), LLAgent::LLAgent(), and LLAgent::processScriptControlChange().


Generated on Thu Jul 1 06:10:05 2010 for Second Life Viewer by  doxygen 1.4.7