Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/HUD_HS16/src/modules/weapons/projectiles/LightningGunProjectile.h @ 11305

Last change on this file since 11305 was 11071, checked in by landauf, 9 years ago

merged branch cpp11_v3 back to trunk

  • Property svn:eol-style set to native
File size: 2.2 KB
Line 
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
29/**
30    @file LightningGunProjectile.h
31    @brief Definition of the LightningGunProjectile class.
32*/
33
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
43namespace orxonox
44{
45
46    /**
47    @brief
48        The LightningGunProjectile is a projectile that is represented by a looped series of billboards.
49       
50    @author
51        Joel Smely
52    @ingroup WeaponsProjectiles
53    */
54    class _WeaponsExport LightningGunProjectile : public BillboardProjectile
55    {
56        public:
57            LightningGunProjectile(Context* context);
58            virtual ~LightningGunProjectile() {}
59
60            virtual void setMaterial(const std::string& material) override;
61
62        private:
63            void registerVariables();
64            void changeTexture();
65           
66            unsigned int textureIndex_; //!< The current index of the texture. (i.e. the index of the currently displayed texture)
67            unsigned int maxTextureIndex_; //!< The maximal index.
68            Timer textureTimer_; //!< A timer that loops and changes textures each time it expires.
69            std::string materialBase_; //!< The base name of the material.
70    };
71}
72
73#endif /* _LightningGunProjectile_H__ */
Note: See TracBrowser for help on using the repository browser.