source: trunk/orbital/orbital.h @ 1344

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

orbital: create a Player class with joystick support.

File size: 698 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 "tank.h"
13#include "player.h"
14
15class Orbital : public WorldEntity
16{
17public:
18    Orbital();
19    virtual ~Orbital();
20
21    char const *GetName() { return "<orbital>"; }
22
23protected:
24    virtual void TickGame(float seconds);
25    virtual void TickDraw(float seconds);
26
27private:
28    Mesh m;
29    float m_auto_cam_timer;
30    vec3 m_angle, m_angular_velocity;
31    mat4 m_model;
32
33    ParticleSystem *m_particlesystem;
34    Camera *m_camera;
35    Array<Player *> m_players;
36    Array<Tank *> m_tanks;
37
38    bool m_ready;
39};
40
41#endif // __ORBITAL_H__
42
Note: See TracBrowser for help on using the repository browser.