Last change
on this file since 716 was
708,
checked in by rgrieder, 18 years ago
|
- added Vector2, Vector3, Matrix3, ColourValue, Quaternion and String to the misc folder as header files
(each of them contains #include <string> … typedef std::string String , etc.)
- please use String from now on by including <misc/String.h"
- removed #include <OgreVector3.h", etc. from "CoreIncludes.h" (adjusted all source files)
- adjusted all the source files (except network, that keeps <string> for the moment) (what a mess..)
- moved usleep hack to misc/Sleep.h
- relative include paths for files from other root directories (like misc, network, etc.)
(but it stills writes "../Orxonox.h" when in folder orxonox/objects)
- "OgreSceneManager.h" —> <OgreSceneManager.h>
- included OrxonoxPrereqs in every file in folder orxonox
- moved HUD and ParticleInterface to namespace orxonox
- removed some using namespace Ogre/std when appropriate
- I hope I haven't forgotten important points..
|
File size:
730 bytes
|
Rev | Line | |
---|
[643] | 1 | #ifndef _Projectile_H__ |
---|
| 2 | #define _Projectile_H__ |
---|
| 3 | |
---|
[708] | 4 | #include "../OrxonoxPrereqs.h" |
---|
| 5 | |
---|
[643] | 6 | #include "WorldEntity.h" |
---|
| 7 | #include "BillboardSet.h" |
---|
| 8 | #include "Timer.h" |
---|
| 9 | |
---|
| 10 | namespace orxonox |
---|
| 11 | { |
---|
[708] | 12 | class SpaceShip; // Forward declaration |
---|
| 13 | |
---|
[643] | 14 | class Projectile : public WorldEntity |
---|
| 15 | { |
---|
| 16 | public: |
---|
| 17 | Projectile(SpaceShip* owner = 0); |
---|
[646] | 18 | virtual ~Projectile(); |
---|
[697] | 19 | void setConfigValues(); |
---|
[643] | 20 | void destroyObject(); |
---|
[646] | 21 | virtual void tick(float dt); |
---|
[643] | 22 | |
---|
| 23 | private: |
---|
| 24 | SpaceShip* owner_; |
---|
| 25 | BillboardSet billboard_; |
---|
| 26 | float speed_; |
---|
| 27 | float lifetime_; |
---|
| 28 | Timer<Projectile> destroyTimer_; |
---|
| 29 | }; |
---|
| 30 | } |
---|
| 31 | |
---|
[673] | 32 | #endif /* _Projectile_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.