Update visibility system

*visibility updates and ai relocations processed simultaneously for each grid
  *these operations now are not synchronized for different grids
  *some changes into structure of visibility notifiers

--HG--
branch : trunk
This commit is contained in:
silver1ce committed 2010-02-27 15:25:14 +02:00
1 parent 1815d19b85
commit fcaa318fb3
18 files changed
+290 -475

No files matched your search

+5
View File
@@ -201,6 +201,11 @@ struct PeriodicTimer
i_period = period;
}
// Tracker interface
void TUpdate(int32 diff) { i_expireTime -= diff; }
bool TPassed() const { return i_expireTime <= 0; }
void TReset(int32 diff, int32 period) { i_expireTime += period > diff ? period : diff; }
private:
int32 i_period;