Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/tutorial/src/orxonox/objects/Projectile.h @ 1747

Last change on this file since 1747 was 862, checked in by landauf, 17 years ago

tutorial

File size: 854 bytes
RevLine 
[859]1#ifndef _Projectile_H__
2#define _Projectile_H__
3
4#include "../OrxonoxPrereqs.h"
5
6#include "WorldEntity.h"
7#include "../tools/BillboardSet.h"
8#include "../tools/Timer.h"
9
10namespace orxonox
11{
12    class SpaceShip; // Forward declaration
13
14    class _OrxonoxExport Projectile : public WorldEntity
15    {
16        public:
[862]17            Projectile();
[859]18            virtual ~Projectile();
19            void setConfigValues();
20            void destroyObject();
21            virtual void tick(float dt);
[862]22            void setOwner(SpaceShip* owner = 0);
[859]23
[862]24        protected:
25            BillboardSet billboard_;
26            float speed_;
27
[859]28        private:
29            SpaceShip* owner_;
30            float lifetime_;
31            Timer<Projectile> destroyTimer_;
32    };
33    ExportClass(Projectile, Orxonox);
34}
35
36#endif /* _Projectile_H__ */
Note: See TracBrowser for help on using the repository browser.