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
tactics.cpp
Go to the documentation of this file.
1
#include "
tactics.h
"
2
#include "
vegastrike.h
"
3
#include "
cmd/unit_generic.h
"
4
5
void
CloakFor::Execute
()
6
{
7
if
(time == 0)
8
parent
->
Cloak
( enable );
9
time +=
SIMULATION_ATOM
;
10
if
(time > maxtime) {
11
done
=
true
;
12
if
(maxtime != 0)
13
parent
->
Cloak
( !enable );
14
return
;
15
}
16
}
17
CloakFor::~CloakFor
()
18
{
19
#ifdef ORDERDEBUG
20
VSFileSystem::vs_fprintf
( stderr,
"clk%x\n"
,
this
);
21
fflush( stderr );
22
#endif
23
if
(
parent
&& time <= maxtime)
24
parent
->
Cloak
( !enable );
25
}
26
src
cmd
ai
tactics.cpp
Generated on Fri May 29 2015 23:07:08 for Vegastrike 0.5.1 rc1 by
1.8.4