Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/orxonox/objects/RotatingProjectile.h @ 1552

Last change on this file since 1552 was 1552, checked in by landauf, 16 years ago

several improvements:

  • AI works properly now - add enemies with 'createEnemy x' where x is the number of enemies to add, default is 1. You can remove AI ships with 'killEnemies'.
  • Added new explosion (with smoke)
  • Added new projectile (with trail)
  • Added new thruster emitter
  • AI ships are destroyable - they start with 100 hp, each hit makes 15 hp damage, this value is configurable in the config-file: [Projectile] damage_
  • Added AI ship spawn and explosion effects
  • Property svn:eol-style set to native
File size: 744 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            virtual void tick(float dt);
17
18        private:
19            ColourValue colour_;
20            BillboardSet rotatingBillboard1_;
21            BillboardSet rotatingBillboard2_;
22            Ogre::SceneNode* rotatingNode1_;
23            Ogre::SceneNode* rotatingNode2_;
24            float time_;
25    };
26}
27
28#endif /* _RotatingProjectile_H__ */
Note: See TracBrowser for help on using the repository browser.