Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/Presentation_FS19/src/modules/weapons/projectiles/BallProjectile.h @ 12411

Last change on this file since 12411 was 12411, checked in by wiesep, 5 years ago

Merged OrxoBlox_FS19

File size: 1.6 KB
Line 
1#ifndef _BallProjectile_H__
2#define _BallProjectile_H__
3
4#include "weapons/WeaponsPrereqs.h"
5#include "weapons/projectiles/BillboardProjectile.h"
6#include "../../OrxoBlox/OrxoBlox.h"
7#include "../../OrxoBlox/OrxoBloxStones.h"
8
9#include "OrxoBlox/OrxoBloxPrereqs.h"
10
11namespace orxonox
12{
13
14    class _WeaponsExport BallProjectile : public BillboardProjectile
15    {
16        public:
17            BallProjectile(Context* context);
18            void Bounce(WorldEntity* otherObject, btManifoldPoint& contactPoint, const btCollisionShape* cs);
19            virtual void setMaterial(const std::string& material) override;
20            virtual void tick(float dt) override;
21            void setSpeed(float speed);
22
23
24        protected:
25            bool processCollision(WorldEntity* otherObject, btManifoldPoint& contactPoint, const btCollisionShape* cs) override;
26
27        private:
28            void destroyObject() override;
29            void registerVariables();
30            void changeTexture();
31            OrxoBlox* getOrxoBlox();
32           
33            float speed_; //!< The speed (in x-direction) of the ball.
34            float fieldWidth_; //!< The width of the playing field.
35            float fieldHeight_; //!< The height of the playing field.
36            unsigned int textureIndex_; //!< The current index of the texture. (i.e. the index of the currently displayed texture)
37            unsigned int maxTextureIndex_; //!< The maximal index.
38            std::string materialBase_; //!< The base name of the material.
39            OrxoBlox* orxoblox_;
40            OrxoBloxStones* stone_;
41    };
42}
43
44#endif /* _ParticleProjectile_H__ */
Note: See TracBrowser for help on using the repository browser.