|
Colobot
|
#include <planet.h>
Public Member Functions | |
| CPlanet (CEngine *engine) | |
| void | Flush () |
| Removes all the planets. | |
| bool | EventProcess (const Event &event) |
| Management of an event. | |
| void | Create (int mode, Math::Point start, float dim, float speed, float dir, const std::string &name, Math::Point uv1, Math::Point uv2, bool transparent) |
| Creates a new planet. | |
| bool | PlanetExist () |
| Indicates if there is at least one planet. | |
| void | LoadTexture () |
| Load all the textures for the planets. | |
| void | Draw () |
| Draws all the planets. | |
| void | SetMode (int mode) |
| Choice of mode. | |
| int | GetMode () |
Protected Member Functions | |
| bool | EventFrame (const Event &event) |
| Makes the planets evolve. | |
Protected Attributes | |
| CEngine * | m_engine |
| float | m_time |
| int | m_mode |
| std::vector< Planet > | m_planet [2] |
| bool | m_planetExist |
Planet manager.
Draws the planets orbiting in the sky.
Planets are drawn in 2D mode, at coordinates calculated from camera position.
1.8.5