Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/core3/src/orxonox/objects/RotatingProjectile.h @ 1768

Last change on this file since 1768 was 1596, checked in by landauf, 16 years ago
  • added feature to add a callback function to configvalues. they get called if the value changes. an examples is in Core.cc.
  • changed the SetConfigValue macro and the Identifier::updateConfigValues() function to work properly with inherited classes in both possible cases: 1) they overwrite the config-value or 2) they don't. an example is ParticleProjectile that defines it's own speed_ configvalue.
  • Property svn:eol-style set to native
File size: 824 bytes
Line 
1#ifndef _RotatingProjectile_H__
2#define _RotatingProjectile_H__
3
4#include "OrxonoxPrereqs.h"
5#include "util/Math.h"
6#include "BillboardProjectile.h"
7
8namespace orxonox
9{
10    class _OrxonoxExport RotatingProjectile : public BillboardProjectile
11    {
12        public:
13            RotatingProjectile(SpaceShip* owner = 0);
14            virtual ~RotatingProjectile();
15            void setConfigValues();
16            void colourChanged();
17            virtual void tick(float dt);
18            virtual void changedVisibility();
19
20        private:
21            ColourValue colour_;
22            BillboardSet rotatingBillboard1_;
23            BillboardSet rotatingBillboard2_;
24            Ogre::SceneNode* rotatingNode1_;
25            Ogre::SceneNode* rotatingNode2_;
26            float time_;
27    };
28}
29
30#endif /* _RotatingProjectile_H__ */
Note: See TracBrowser for help on using the repository browser.