Terminus
explosion.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <memory>
4 
5 #include <util/timer.h>
7 
8 class QVector3D;
9 
10 namespace terminus
11 {
12 
21 {
22 public:
23  Explosion(World & world, const QVector3D & position);
24  virtual ~Explosion();
25 
26 protected:
27  virtual void localUpdate() override;
28 
29  virtual void localRenderSetup(QOpenGLFunctions & gl, Program & program) const;
30  virtual void localRenderCleanup(QOpenGLFunctions & gl, Program & program) const;
31 
32 protected:
34 };
35 
36 }
Explosion(World &world, const QVector3D &position)
Definition: explosion.cpp:14
The AbstractGraphicsObject class is the root of a class hierarchy of objects that contain independen ...
Definition: abstractgraphicsobject.h:27
unsigned int TimerID
Definition: timer.h:21
The program class implements the basic functionality used for binding programs to openGL...
Definition: program.h:18
virtual void localUpdate() override
override this method to update this objects state
Definition: explosion.cpp:31
virtual void localRenderSetup(QOpenGLFunctions &gl, Program &program) const
override this method to customize the rendering process
Definition: explosion.cpp:46
virtual void localRenderCleanup(QOpenGLFunctions &gl, Program &program) const
override this method to customize the rendering process
Definition: explosion.cpp:51
The World class represents a running game instance and contains all graphical (3D) elements of the sc...
Definition: world.h:46
Definition: eventhandler.cpp:18
The Explosion class renders an explosion effect.
Definition: explosion.h:20
virtual ~Explosion()
Definition: explosion.cpp:26
Timer::TimerID m_timer
Definition: explosion.h:33
QVector3D position() const
Definition: abstractgraphicsobject.cpp:152