source: trunk/orbital/orbital.h @ 1363

Last change on this file since 1363 was 1363, checked in by sam, 9 years ago

orbital: add the two parallax starfields.

File size: 749 bytes
Line 
1//
2// Orbital
3//
4// Copyright: (c) 2012 Various People
5//
6
7#if !defined __ORBITAL_H__
8#define __ORBITAL_H__
9
10#include "mesh.h"
11#include "particlesystem.h"
12#include "starfield.h"
13#include "tank.h"
14#include "player.h"
15
16class Orbital : public WorldEntity
17{
18public:
19    Orbital();
20    virtual ~Orbital();
21
22    char const *GetName() { return "<orbital>"; }
23
24protected:
25    virtual void TickGame(float seconds);
26    virtual void TickDraw(float seconds);
27
28private:
29    Mesh m;
30    float m_auto_cam_timer;
31    vec3 m_angle, m_angular_velocity;
32    mat4 m_model;
33
34    ParticleSystem *m_particlesystem;
35    StarField *m_starfield;
36    Camera *m_camera;
37    Array<Player *> m_players;
38    Array<Tank *> m_tanks;
39
40    bool m_ready;
41};
42
43#endif // __ORBITAL_H__
44
Note: See TracBrowser for help on using the repository browser.