ovassvepCStarShip.h 1.05 KB
Newer Older
OpenViBE Posse's avatar
OpenViBE Posse committed
1 2 3 4 5
#ifndef __OpenViBEApplication_CStarShip_H__
#define __OpenViBEApplication_CStarShip_H__

#include <Ogre.h>

OpenViBE Posse's avatar
OpenViBE Posse committed
6
#include <openvibe/ov_all.h>
OpenViBE Posse's avatar
OpenViBE Posse committed
7
#include <toolkit/ovtk_all.h>
OpenViBE Posse's avatar
OpenViBE Posse committed
8 9 10 11 12 13 14 15 16

namespace OpenViBESSVEP
{
	class CApplication;
	class CSSVEPFlickeringObject;

	class CStarShip
	{
		public:
17 18
			CStarShip( CApplication* poApplication, Ogre::SceneNode* poParentNode, Ogre::Real rRadius, std::vector<std::pair<uint32_t, uint32_t> >* pFrequencies);
			void processFrame( uint32_t ui32CurrentFrame );
OpenViBE Posse's avatar
OpenViBE Posse committed
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49

			void rotate( int iRotationCount );

			bool isShooting()
			{
				return m_bIsShooting;
			}

			void shoot();
			std::pair<Ogre::Real, Ogre::Real> getShotCoordinates();

		private:
			Ogre::SceneNode* m_poShipNode;

			CSSVEPFlickeringObject* m_poShipCannon;
			CSSVEPFlickeringObject* m_poShipLeftWing;
			CSSVEPFlickeringObject* m_poShipRightWing;

			Ogre::Real m_rAngularSpeed;
			Ogre::Radian m_rCurrentAngle;
			int m_iCurrentRotationCount;

			Ogre::SceneNode* m_poShotNode;
			bool m_bIsShooting;
			Ogre::Real m_rShotDistance;


	};
}

#endif // __OpenViBEApplication_CStarShip_H__