EntityTrigger.h 831 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef ENTITY_TRIGGER_H
  2. #define ENTITY_TRIGGER_H
  3. #include <OgreRoot.h>
  4. class Entity;
  5. class EntityTrigger
  6. {
  7. public:
  8. EntityTrigger( const Ogre::String& name );
  9. virtual ~EntityTrigger();
  10. void UpdateDebug();
  11. const Ogre::String& GetName() const;
  12. void SetEnabled( const bool enabled );
  13. bool IsEnabled() const;
  14. void AddActivator( Entity* activator );
  15. void RemoveActivator( Entity* activator );
  16. bool IsActivator( Entity* activator );
  17. void SetPoints( const Ogre::Vector3& point1, const Ogre::Vector3& point2 );
  18. const Ogre::Vector3& GetPoint1() const;
  19. const Ogre::Vector3& GetPoint2() const;
  20. protected:
  21. Ogre::String m_Name;
  22. bool m_Enabled;
  23. std::vector< Entity* > m_Activators;
  24. Ogre::Vector3 m_Point1;
  25. Ogre::Vector3 m_Point2;
  26. };
  27. #endif // ENTITY_TRIGGER_H