Last change
on this file since 1553 was
1552,
checked in by landauf, 17 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
|
Rev | Line | |
---|
[1505] | 1 | #ifndef _RotatingProjectile_H__ |
---|
| 2 | #define _RotatingProjectile_H__ |
---|
| 3 | |
---|
[1552] | 4 | #include "OrxonoxPrereqs.h" |
---|
[1505] | 5 | #include "util/Math.h" |
---|
[1552] | 6 | #include "BillboardProjectile.h" |
---|
[1505] | 7 | |
---|
| 8 | namespace orxonox |
---|
| 9 | { |
---|
[1552] | 10 | class _OrxonoxExport RotatingProjectile : public BillboardProjectile |
---|
[1505] | 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.