summaryrefslogtreecommitdiffhomepage
path: root/Stars45/ShipSolid.h
blob: 48a1bae97613229133e82ded9e2663e6af03ef37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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