Roguelike
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
sound.h
Go to the documentation of this file.
1 #ifndef ROGUELIKE_COMPONENT_SOUND_H_
2 #define ROGUELIKE_COMPONENT_SOUND_H_
3 
4 // Inheritance
6 
7 // External Dependencies
8 // (none)
9 
10 // Internal Dependencies
11 // (none)
12 
13 // Forward Declarations
14 #include "game/base.h"
15 #include "game/component.h"
16 
17 namespace game {
18 namespace component {
19 
20 class Sound : public ComponentBase {
21  typedef ComponentBase super;
22  public:
23  Sound(game::base::GameObject* owner) : super(owner) {}
24  ~Sound() {}
25 
26  bool TryListen(int noise_level);
27 
28  private:
29  int sound_sensitivity_;
30 };
31 
32 } // namespace component
33 } // namespace game
34 
35 #endif // ROGUELIKE_COMPONENT_SOUND_H_
Definition: gameobject.h:53
Definition: sound.h:20
bool TryListen(int noise_level)
Definition: sound.cc:16
Sound(game::base::GameObject *owner)
Definition: sound.h:23
Definition: aim.cc:15
~Sound()
Definition: sound.h:24
Definition: componentbase.h:19