| 
                Last change
                  on this file since 10514 was
                  10424,
                  checked in by patrick, 19 years ago
           | 
        
        
          | 
               
more on planet atmos, fading and track 
 
           | 
        
        | 
            File size:
            732 bytes
           | 
      
      
        
  | Line |   | 
|---|
| 1 | #ifndef _BLACKSCREEN_H | 
|---|
| 2 | #define _BLACKSCREEN_H | 
|---|
| 3 |  | 
|---|
| 4 | #include "world_entity.h" | 
|---|
| 5 |  | 
|---|
| 6 |  | 
|---|
| 7 | class TiXmlElement; | 
|---|
| 8 | class Material; | 
|---|
| 9 |  | 
|---|
| 10 | class BlackScreen : public WorldEntity | 
|---|
| 11 | { | 
|---|
| 12 |     ObjectListDeclaration(BlackScreen); | 
|---|
| 13 |  | 
|---|
| 14 |   private: | 
|---|
| 15 |     float i; | 
|---|
| 16 |     bool state; | 
|---|
| 17 |     Material*       material; | 
|---|
| 18 |     void fadeIn(); | 
|---|
| 19 |     void fadeOut(); | 
|---|
| 20 |     float fadeSpeed; | 
|---|
| 21 |  | 
|---|
| 22 |   public: | 
|---|
| 23 |     BlackScreen(); | 
|---|
| 24 |     BlackScreen(const TiXmlElement* root); | 
|---|
| 25 |     virtual ~BlackScreen(); | 
|---|
| 26 |  | 
|---|
| 27 |     void init(); | 
|---|
| 28 |     virtual void loadParams(const TiXmlElement* root); | 
|---|
| 29 |  | 
|---|
| 30 |     void toggleFade(); | 
|---|
| 31 |     void initFadeBlack(); | 
|---|
| 32 |     void changeFadeSpeed(float newSpeed); | 
|---|
| 33 |     bool isBlack(); | 
|---|
| 34 |     bool isTrans(); | 
|---|
| 35 |     virtual void tick (float time); | 
|---|
| 36 |  | 
|---|
| 37 |     virtual void draw() const; | 
|---|
| 38 |  | 
|---|
| 39 |  | 
|---|
| 40 | }; | 
|---|
| 41 |  | 
|---|
| 42 | #endif /* _BLACKSCREEN_H */ | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.