Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
beam_server.cpp
Go to the documentation of this file.
1
#include "
vegastrike.h
"
2
#include <vector>
3
#include "
beam.h
"
4
#include "
unit_generic.h
"
5
//#include "unit_collide.h"
6
#include "
images.h
"
7
8
Beam::Beam
(
const
Transformation
&trans,
const
weapon_info
&clne,
void
*own,
Unit
*
self
,
int
sound ) : vlist( NULL )
9
, Col( clne.r, clne.
g
, clne.
b
, clne.
a
)
10
{
11
VSCONSTRUCT2
(
'B'
)
12
listen_to_owner = false;
//warning this line of code is also present in beam.cpp change one, change ALL
13
14
Init
( trans, clne, own, self );
15
impact = UNSTABLE;
16
}
17
18
Beam
::~
Beam
()
19
{
20
VSDESTRUCT2
21
//VSFileSystem::vs_fprintf (stderr,"Deleting %x",this);
22
#ifdef BEAMCOLQ
23
RemoveFromSystem
(
true
);
24
#endif
25
//delete vlist; // Do not delete shared vlist.
26
}
27
28
void
Beam::Draw
(
const
Transformation
&trans,
const
Matrix
&m,
Unit
*targ,
float
tracking_cone )
29
{
30
//hope that the correct transformation is on teh stack
31
}
32
33
void
Beam::ProcessDrawQueue
() {}
34
src
cmd
beam_server.cpp
Generated on Fri May 29 2015 23:07:10 for Vegastrike 0.5.1 rc1 by
1.8.4