PageRenderTime 20ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/newview/llagentlistener.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 69 lines | 32 code | 10 blank | 27 comment | 0 complexity | 97b053fa172b32e7e592ea4a21438cf7 MD5 | raw file
 1/**
 2 * @file   llagentlistener.h
 3 * @author Brad Kittenbrink
 4 * @date   2009-07-09
 5 * @brief  Event API for subset of LLViewerControl methods
 6 * 
 7 * $LicenseInfo:firstyear=2009&license=viewerlgpl$
 8 * Second Life Viewer Source Code
 9 * Copyright (C) 2010, Linden Research, Inc.
10 * 
11 * This library is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Lesser General Public
13 * License as published by the Free Software Foundation;
14 * version 2.1 of the License only.
15 * 
16 * This library is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19 * Lesser General Public License for more details.
20 * 
21 * You should have received a copy of the GNU Lesser General Public
22 * License along with this library; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
24 * 
25 * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA
26 * $/LicenseInfo$
27 */
28
29
30#ifndef LL_LLAGENTLISTENER_H
31#define LL_LLAGENTLISTENER_H
32
33#include "lleventapi.h"
34
35class LLAgent;
36class LLSD;
37class LLViewerObject; 
38class LLVector3d;
39
40class LLAgentListener : public LLEventAPI
41{
42public:
43    LLAgentListener(LLAgent &agent);
44
45private:
46    void requestTeleport(LLSD const & event_data) const;
47    void requestSit(LLSD const & event_data) const;
48    void requestStand(LLSD const & event_data) const;
49    void requestTouch(LLSD const & event_data) const;
50    void resetAxes(const LLSD& event_data) const;
51    void getAxes(const LLSD& event_data) const;
52	void getGroups(const LLSD& event) const;
53    void getPosition(const LLSD& event_data) const;
54    void startAutoPilot(const LLSD& event_data);
55    void getAutoPilot(const LLSD& event_data) const;
56    void startFollowPilot(const LLSD& event_data);
57    void setAutoPilotTarget(const LLSD& event_data) const;
58    void stopAutoPilot(const LLSD& event_data) const;
59	void lookAt(LLSD const & event_data) const;
60
61	LLViewerObject * findObjectClosestTo( const LLVector3 & position ) const;
62
63private:
64    LLAgent &	mAgent;
65	LLUUID		mFollowTarget;
66};
67
68#endif // LL_LLAGENTLISTENER_H
69