Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Debris.h
Go to the documentation of this file.
1 /* Project Starshatter 4.5
2  Destroyer Studios LLC
3  Copyright © 1997-2004. All Rights Reserved.
4 
5  SUBSYSTEM: Stars.exe
6  FILE: Debris.h
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  Debris Sprite class
13 */
14 
15 #ifndef Debris_h
16 #define Debris_h
17 
18 #include "Types.h"
19 #include "Geometry.h"
20 #include "SimObject.h"
21 
22 // +--------------------------------------------------------------------+
23 
24 class Solid;
25 class Model;
26 class Shot;
27 
28 // +--------------------------------------------------------------------+
29 
30 class Debris : public SimObject
31 {
32 public:
33  Debris(Model* model, const Vec3& pos, const Vec3& vel, double mass);
34 
35  void SetLife(int seconds) { life = seconds; }
36  virtual int HitBy(Shot* shot, Point& impact);
37 
38  virtual void ExecFrame(double seconds);
39  virtual double AltitudeAGL() const;
40 };
41 
42 #endif Debris_h
43