Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/scriptchanges/src/world_entities/sound_entity.cc @ 10451

Last change on this file since 10451 was 10321, checked in by patrick, 18 years ago

silvans complete patch

File size: 1.2 KB
Line 
1/*
2   orxonox - the future of 3D-vertical-scrollers
3
4   Copyright (C) 2004 orx
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2, or (at your option)
9   any later version.
10
11   ### File Specific
12   main-programmer: Patrick Boenzli
13*/
14#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WEAPON
15
16
17#include "sound_entity.h"
18
19#include "util/loading/factory.h"
20#include "material.h"
21
22#include "sound/resource_sound_buffer.h"
23
24
25
26
27
28ObjectListDefinition(SoundEntity);
29CREATE_FACTORY(SoundEntity);
30
31/**
32 *  standard constructor
33*/
34SoundEntity::SoundEntity (const TiXmlElement* root)
35{
36  this->registerObject(this, SoundEntity::_objectList);
37
38  this->toList(OM_COMMON);
39
40  this->soundSource.setSourceNode(this);
41
42  this->thunderBuffer = OrxSound::ResourceSoundBuffer("sounds/atmosphere/thunder.wav");
43}
44
45
46/**
47 *  standard deconstructor
48*/
49SoundEntity::~SoundEntity ()
50{
51}
52
53void SoundEntity::activate()
54{
55}
56
57
58void SoundEntity::deactivate()
59{
60
61}
62
63
64/**
65 *  signal tick, time dependent things will be handled here
66 * @param time since last tick
67*/
68void SoundEntity::tick (float dt)
69{
70
71}
72
73
74
Note: See TracBrowser for help on using the repository browser.