| 1 | // Copyright 2005 by Anthony Liekens [email protected] |
| 2 | |
| 3 | #ifndef STARS_H |
| 4 | #define STARS_H |
| 5 | |
| 6 | #include <vector> |
| 7 | |
| 8 | #include "coordinate.h" |
| 9 | |
| 10 | class Star { |
| 11 | private: |
| 12 | int brightness; |
| 13 | Coordinate c; |
| 14 | public: |
| 15 | Star(); |
| 16 | void render( ) const; |
| 17 | }; |
| 18 | |
| 19 | class Stars : public std::vector< Star > { |
| 20 | public: |
| 21 | Stars(); |
| 22 | Stars( int n ); |
| 23 | |
| 24 | void addStars( int n ); |
| 25 | |
| 26 | void render( ) const; |
| 27 | }; |
| 28 | |
| 29 | #endif |