Colobot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Gfx::CPlanet Class Reference

Planet manager. More...

#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

CEnginem_engine
 
float m_time
 
int m_mode
 
std::vector< Planetm_planet [2]
 
bool m_planetExist
 

Detailed Description

Planet manager.

Draws the planets orbiting in the sky.

Planets are drawn in 2D mode, at coordinates calculated from camera position.


The documentation for this class was generated from the following files: