Orxonox  0.0.5 Codename: Arcturus
IceGunFreezer.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  * Fabien Vultier
24  * Co-authors:
25  * ...
26  *
27  */
28 
34 #ifndef _IceGunFreezer_H__
35 #define _IceGunFreezer_H__
36 
37 #include "weapons/WeaponsPrereqs.h"
38 
40 #include "graphics/Model.h"
41 #include "tools/Timer.h"
43 
44 namespace orxonox
45 {
52  {
53  public:
54  IceGunFreezer(Context* context);
55  virtual ~IceGunFreezer();
56  virtual void startFreezing();
57  virtual void stopFreezing();
58  virtual void setFreezeTime(float freezeTime);
59  virtual void setFreezeFactor(float freezeFactor);
60  private:
61  float freezeTime_; //The duration of the freezing effect on a target
62  float freezeFactor_; //The strength of the freezing effect
66  };
67 }
68 
69 #endif /* _IceGunFreezer_H__ */
float freezeFactor_
Definition: IceGunFreezer.h:62
The StaticEntity is the simplest derivative of the orxonox::WorldEntity class.
Definition: StaticEntity.h:50
Definition of Model Class.
Shared library macros, enums, constants and forward declarations for the weapons module ...
WeakPtr wraps a pointer to an object, which becomes nullptr if the object is deleted.
Definition: CorePrereqs.h:236
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
Definition: Context.h:45
Timer freezeTimer_
Definition: IceGunFreezer.h:64
WeakPtr< SpaceShip > freezedSpaceShip_
Definition: IceGunFreezer.h:65
This is the WorldEntity that gets attached to a victim hit by a IceGunProjectile. ...
Definition: IceGunFreezer.h:51
Definition: Model.h:46
Timer is a helper class that executes a function after a given amount of seconds in game-time...
Definition: Timer.h:105
float freezeTime_
Definition: IceGunFreezer.h:61
Model * model
Definition: IceGunFreezer.h:63
#define _WeaponsExport
Definition: WeaponsPrereqs.h:60