Orxonox  0.0.5 Codename: Arcturus
LightningGunProjectile.h
Go to the documentation of this file.
1 /*
2  * ORXONOX - the hottest 3D action shooter ever to exist
3  * > www.orxonox.net <
4  *
5  *
6  * License notice:
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * as published by the Free Software Foundation; either version 2
11  * of the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21  *
22  * Author:
23  * Joel Smely
24  * Co-authors:
25  * ...
26  *
27  */
28 
34 #ifndef _LightningGunProjectile_H__
35 #define _LightningGunProjectile_H__
36 
37 #include "weapons/WeaponsPrereqs.h"
38 
39 #include <string>
40 #include "tools/Timer.h"
41 #include "BillboardProjectile.h"
42 
43 namespace orxonox
44 {
45 
55  {
56  public:
59 
60  virtual void setMaterial(const std::string& material) override;
61 
62  private:
63  void registerVariables();
64  void changeTexture();
65 
66  unsigned int textureIndex_;
67  unsigned int maxTextureIndex_;
70  };
71 }
72 
73 #endif /* _LightningGunProjectile_H__ */
A BillboardProjectile is a projectile that is represented by a Billboard.
Definition: BillboardProjectile.h:54
Implementation of the BillboardProjectile class.
::std::string string
Definition: gtest-port.h:756
Shared library macros, enums, constants and forward declarations for the weapons module ...
virtual ~LightningGunProjectile()
Definition: LightningGunProjectile.h:58
The LightningGunProjectile is a projectile that is represented by a looped series of billboards...
Definition: LightningGunProjectile.h:54
unsigned int textureIndex_
The current index of the texture. (i.e. the index of the currently displayed texture) ...
Definition: LightningGunProjectile.h:66
Declaration of the Timer class, used to call functions after a given time-interval.
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
std::string materialBase_
The base name of the material.
Definition: LightningGunProjectile.h:69
unsigned int maxTextureIndex_
The maximal index.
Definition: LightningGunProjectile.h:67
Definition: Context.h:45
Timer textureTimer_
A timer that loops and changes textures each time it expires.
Definition: LightningGunProjectile.h:68
Timer is a helper class that executes a function after a given amount of seconds in game-time...
Definition: Timer.h:105
#define _WeaponsExport
Definition: WeaponsPrereqs.h:60