Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ShieldRep.h
Go to the documentation of this file.
1 /* Project STARSHATTER
2  John DiCamillo
3  Copyright © 1997-2004. All Rights Reserved.
4 
5  SUBSYSTEM: Stars.exe
6  FILE: ShieldRep.h
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  ShieldRep Solid class
13 */
14 
15 #ifndef ShieldRep_h
16 #define ShieldRep_h
17 
18 #include "Types.h"
19 #include "Solid.h"
20 
21 // +--------------------------------------------------------------------+
22 
23 struct ShieldHit;
24 class Shot;
25 
26 class ShieldRep : public Solid
27 {
28 public:
29  ShieldRep();
30  virtual ~ShieldRep();
31 
32  // operations
33  virtual void Render(Video* video, DWORD flags);
34  virtual void Energize(double seconds, bool bubble=false);
35  int ActiveHits() const { return nhits; }
36  virtual void Hit(Vec3 impact, Shot* shot, double damage=0);
37  virtual void TranslateBy(const Point& ref);
38  virtual void Illuminate();
39 
40 protected:
41  int nhits;
44  bool bubble;
45 };
46 
47 #endif ShieldRep_h
48