PageRenderTime 211ms CodeModel.GetById 9ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/newview/llhudeffect.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 77 lines | 36 code | 16 blank | 25 comment | 0 complexity | f78699cad8f95aa728edd7304c208057 MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llhudeffect.h
  3. * @brief LLHUDEffect class definition
  4. *
  5. * $LicenseInfo:firstyear=2002&license=viewerlgpl$
  6. * Second Life Viewer Source Code
  7. * Copyright (C) 2010, Linden Research, Inc.
  8. *
  9. * This library is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU Lesser General Public
  11. * License as published by the Free Software Foundation;
  12. * version 2.1 of the License only.
  13. *
  14. * This library is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. * Lesser General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Lesser General Public
  20. * License along with this library; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  22. *
  23. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  24. * $/LicenseInfo$
  25. */
  26. #ifndef LL_LLHUDEFFECT_H
  27. #define LL_LLHUDEFFECT_H
  28. #include "llhudobject.h"
  29. #include "lluuid.h"
  30. #include "v4coloru.h"
  31. const F32 LL_HUD_DUR_SHORT = 1.f;
  32. class LLMessageSystem;
  33. class LLHUDEffect : public LLHUDObject
  34. {
  35. public:
  36. void setNeedsSendToSim(const BOOL send_to_sim);
  37. BOOL getNeedsSendToSim() const;
  38. void setOriginatedHere(const BOOL orig_here);
  39. BOOL getOriginatedHere() const;
  40. void setDuration(const F32 duration);
  41. void setColor(const LLColor4U &color);
  42. void setID(const LLUUID &id);
  43. const LLUUID &getID() const;
  44. BOOL isDead() const;
  45. friend class LLHUDManager;
  46. protected:
  47. LLHUDEffect(const U8 type);
  48. ~LLHUDEffect();
  49. /*virtual*/ void render();
  50. virtual void packData(LLMessageSystem *mesgsys);
  51. virtual void unpackData(LLMessageSystem *mesgsys, S32 blocknum);
  52. virtual void update();
  53. static void getIDType(LLMessageSystem *mesgsys, S32 blocknum, LLUUID &uuid, U8 &type);
  54. protected:
  55. LLUUID mID;
  56. F32 mDuration;
  57. LLColor4U mColor;
  58. BOOL mNeedsSendToSim;
  59. BOOL mOriginatedHere;
  60. };
  61. #endif // LL_LLHUDEFFECT_H