PageRenderTime 119ms CodeModel.GetById 0ms RepoModel.GetById 0ms 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
Possible License(s): LGPL-2.1
  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. #ifndef LL_LLAGENTLISTENER_H
  29. #define LL_LLAGENTLISTENER_H
  30. #include "lleventapi.h"
  31. class LLAgent;
  32. class LLSD;
  33. class LLViewerObject;
  34. class LLVector3d;
  35. class LLAgentListener : public LLEventAPI
  36. {
  37. public:
  38. LLAgentListener(LLAgent &agent);
  39. private:
  40. void requestTeleport(LLSD const & event_data) const;
  41. void requestSit(LLSD const & event_data) const;
  42. void requestStand(LLSD const & event_data) const;
  43. void requestTouch(LLSD const & event_data) const;
  44. void resetAxes(const LLSD& event_data) const;
  45. void getAxes(const LLSD& event_data) const;
  46. void getGroups(const LLSD& event) const;
  47. void getPosition(const LLSD& event_data) const;
  48. void startAutoPilot(const LLSD& event_data);
  49. void getAutoPilot(const LLSD& event_data) const;
  50. void startFollowPilot(const LLSD& event_data);
  51. void setAutoPilotTarget(const LLSD& event_data) const;
  52. void stopAutoPilot(const LLSD& event_data) const;
  53. void lookAt(LLSD const & event_data) const;
  54. LLViewerObject * findObjectClosestTo( const LLVector3 & position ) const;
  55. private:
  56. LLAgent & mAgent;
  57. LLUUID mFollowTarget;
  58. };
  59. #endif // LL_LLAGENTLISTENER_H