From e33e19d0587146859d48a134ec9fd94e7b7ba5cd Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Thu, 8 Dec 2011 14:53:40 +0000 Subject: Initial upload --- Stars45/ShieldRep.h | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Stars45/ShieldRep.h (limited to 'Stars45/ShieldRep.h') 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 + -- cgit v1.1