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/ShipSolid.h | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Stars45/ShipSolid.h (limited to 'Stars45/ShipSolid.h') diff --git a/Stars45/ShipSolid.h b/Stars45/ShipSolid.h new file mode 100644 index 0000000..48a1bae --- /dev/null +++ b/Stars45/ShipSolid.h @@ -0,0 +1,52 @@ +/* Project Starshatter 4.5 + Destroyer Studios LLC + Copyright © 1997-2004. All Rights Reserved. + + SUBSYSTEM: Stars.exe + FILE: ShipSolid.h + AUTHOR: John DiCamillo + + + OVERVIEW + ======== + 3D Solid (Polygon) Object +*/ + +#ifndef ShipSolid_h +#define ShipSolid_h + +#include "Solid.h" + +// +--------------------------------------------------------------------+ + +class Ship; +class Skin; + +// +--------------------------------------------------------------------+ + +class ShipSolid : public Solid +{ +public: + static const char* TYPENAME() { return "ShipSolid"; } + + ShipSolid(Ship* s); + virtual ~ShipSolid(); + + virtual void Render(Video* video, DWORD flags); + virtual void TranslateBy(const Point& ref); + + const Skin* GetSkin() const { return skin; } + void SetSkin(const Skin* s) { skin = s; } + +protected: + Ship* ship; + const Skin* skin; + Point true_eye_point; + Point fog_loc; + bool in_soup; +}; + +// +--------------------------------------------------------------------+ + +#endif ShipSolid_h + -- cgit v1.1