Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/OrxoBlox_FS19/src/modules/weapons/projectiles/BallProjectile.h

Last change on this file was 12402, checked in by ahuwyler, 5 years ago

last commit

File size: 1.6 KB
RevLine 
[12281]1#ifndef _BallProjectile_H__
2#define _BallProjectile_H__
3
4#include "weapons/WeaponsPrereqs.h"
5#include "weapons/projectiles/BillboardProjectile.h"
[12384]6#include "../../OrxoBlox/OrxoBlox.h"
7#include "../../OrxoBlox/OrxoBloxStones.h"
[12281]8
[12368]9#include "OrxoBlox/OrxoBloxPrereqs.h"
10
[12281]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;
[12310]20            virtual void tick(float dt) override;
21            void setSpeed(float speed);
[12281]22
[12310]23
[12281]24        protected:
25            bool processCollision(WorldEntity* otherObject, btManifoldPoint& contactPoint, const btCollisionShape* cs) override;
26
27        private:
[12378]28            void destroyObject() override;
[12281]29            void registerVariables();
30            void changeTexture();
[12384]31            OrxoBlox* getOrxoBlox();
[12281]32           
[12310]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.
[12281]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.
[12384]39            OrxoBlox* orxoblox_;
[12402]40            OrxoBloxStones* stone_;
[12281]41    };
42}
43
44#endif /* _ParticleProjectile_H__ */
Note: See TracBrowser for help on using the repository browser.