Starshatter_Open
Open source Starshatter engine
Main Page
Classes
Files
File List
File Members
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
;
42
ShieldHit
*
hits
;
43
Point
true_eye_point
;
44
bool
bubble
;
45
};
46
47
#endif ShieldRep_h
48
Stars45
ShieldRep.h
Generated on Tue Jun 5 2012 20:47:09 for Starshatter_Open by
1.8.1