Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members
E:/Programming/MyProject/K_Game_hg/GameEngine/include/sound/Listener.h
Go to the documentation of this file.
00001 // Copyright 2006-2011 by Kat'Oun
00002 
00003 #ifndef _LISTENER_H_
00004 #define _LISTENER_H_
00005 
00006 #include <EngineConfig.h>
00007 #include <core/Types.h>
00008 #include <scene/Node.h>
00009 
00010 namespace core
00011 {
00012 class vector3d;
00013 }
00014 
00015 namespace sound
00016 {
00020 class ENGINE_PUBLIC_EXPORT Listener: public scene::Node
00021 {
00022 public:
00023 
00024         Listener();
00025         Listener(const std::string& name);
00026 
00027         virtual ~Listener();
00028 
00029         void setVelocity(f32 x, f32 y, f32 z);
00030         void setVelocity(const core::vector3d& vec);
00031         const core::vector3d& getVelocity() const;
00032 
00033 protected:
00034 
00035         // Incremented count for next index
00036         static u32 msNextGeneratedListenerIndex;
00037 
00038         void initProperties();
00039 
00040         core::vector3d mVelocity;
00041 };
00042 
00043 } // end namespace sound
00044 
00045 #endif

The KG Game Engine
The KG Game Engine Documentation © 2006-2011 by Kat'Oun. Generated on Sat Jul 2 2011 00:50:05 by Doxygen (1.7.4)