Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 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 
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 }
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