source: trunk/orbital/orbital.h @ 1310

Last change on this file since 1310 was 1310, checked in by sam, 8 years ago

core: tick methods now use seconds, like any sane system.

File size: 802 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 "camera.h"
13
14class Orbital : public WorldEntity
15{
16public:
17    Orbital();
18    virtual ~Orbital();
19
20    char const *GetName() { return "<orbital>"; }
21
22protected:
23    virtual void TickGame(float seconds);
24    virtual void TickDraw(float seconds);
25
26private:
27    Mesh m;
28    float m_auto_cam_timer;
29    float m_horizontal_angle_speed;
30    float m_vertical_angle_speed;
31    float m_roll_angle_speed;
32
33    float m_horizontal_angle;
34    float m_vertical_angle;
35    float m_roll_angle;
36
37    mat4 m_modelview, m_proj;
38    mat3 m_normalmat;
39
40    ParticleSystem *m_particlesystem;
41    Camera *m_camera;
42
43    bool m_ready;
44};
45
46#endif // __ORBITAL_H__
47
Note: See TracBrowser for help on using the repository browser.