Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
asteroid_generic.h
Go to the documentation of this file.
1 #ifndef _ASTEROIDGENERIC_H_
2 #define _ASTEROIDGENERIC_H_
4 #include "gfx/vec.h"
5 #include "cmd/unit_generic.h"
6 
7 class Asteroid: public Unit
8 {
9  public:
10  void Init( float difficulty);
11  virtual enum clsptr isUnit() const { return(ASTEROIDPTR);}
12  virtual void reactToCollision(Unit * smaller, const QVector& biglocation, const Vector& bignormal, const QVector& smalllocation, const Vector& smallnormal, float dist);
13 
14  protected:
17  Asteroid(const char * filename, int faction, Flightgroup* fg=NULL, int fg_snumber=0, float difficulty=.01);
18 
19  friend class UnitFactory;
20 
21  // default constructor forbidden
22  Asteroid( ) {}
23  Asteroid (std::vector <Mesh *> m,bool b,int i): Unit (m,b,i){}
24  // copy constructor forbidden
25 
26  // assignment operator forbidden
27 
28  private:
29  unsigned int asteroid_physics_offset;
30 };
31 #endif