1 // ambient_sound.h basti_
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
20 #ifndef __AMBIENT_SOUND_H__
21 #define __AMBIENT_SOUND_H__
24 #include "game_object.h"
25 #include "resources.h"
28 class AmbientSound : public GameObject
31 AmbientSound(const lisp::Lisp& lisp);
34 virtual void hit(Player& player);
35 virtual void action(float time);
36 virtual void draw(DrawingContext&);
37 virtual void startPlaying();
44 float distance_factor;
47 float silence_distance;
49 float * volume_ptr; // this will be used by the volume adjustment effect.