summaryrefslogtreecommitdiffhomepage
path: root/Stars45/ShieldRep.h
diff options
context:
space:
mode:
authorFWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2011-12-08 14:53:40 +0000
committerFWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2011-12-08 14:53:40 +0000
commite33e19d0587146859d48a134ec9fd94e7b7ba5cd (patch)
tree69d048c8801858d2756ab3a487090a7a1b74bf14 /Stars45/ShieldRep.h
downloadstarshatter-e33e19d0587146859d48a134ec9fd94e7b7ba5cd.zip
starshatter-e33e19d0587146859d48a134ec9fd94e7b7ba5cd.tar.gz
starshatter-e33e19d0587146859d48a134ec9fd94e7b7ba5cd.tar.bz2
Initial upload
Diffstat (limited to 'Stars45/ShieldRep.h')
-rw-r--r--Stars45/ShieldRep.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/Stars45/ShieldRep.h b/Stars45/ShieldRep.h
new file mode 100644
index 0000000..07c2bbd
--- /dev/null
+++ b/Stars45/ShieldRep.h
@@ -0,0 +1,48 @@
+/* Project STARSHATTER
+ John DiCamillo
+ Copyright © 1997-2004. All Rights Reserved.
+
+ SUBSYSTEM: Stars.exe
+ FILE: ShieldRep.h
+ AUTHOR: John DiCamillo
+
+
+ OVERVIEW
+ ========
+ ShieldRep Solid class
+*/
+
+#ifndef ShieldRep_h
+#define ShieldRep_h
+
+#include "Types.h"
+#include "Solid.h"
+
+// +--------------------------------------------------------------------+
+
+struct ShieldHit;
+class Shot;
+
+class ShieldRep : public Solid
+{
+public:
+ ShieldRep();
+ virtual ~ShieldRep();
+
+ // operations
+ virtual void Render(Video* video, DWORD flags);
+ virtual void Energize(double seconds, bool bubble=false);
+ int ActiveHits() const { return nhits; }
+ virtual void Hit(Vec3 impact, Shot* shot, double damage=0);
+ virtual void TranslateBy(const Point& ref);
+ virtual void Illuminate();
+
+protected:
+ int nhits;
+ ShieldHit* hits;
+ Point true_eye_point;
+ bool bubble;
+};
+
+#endif ShieldRep_h
+