From fcaa318fb36aca077ca9ba5bfe2707ae0fcbd377 Mon Sep 17 00:00:00 2001 From: silver1ce Date: Sat, 27 Feb 2010 15:25:14 +0200 Subject: 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 --- src/shared/Timer.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/shared') diff --git a/src/shared/Timer.h b/src/shared/Timer.h index 643f68dba84..3e0a369b655 100644 --- a/src/shared/Timer.h +++ b/src/shared/Timer.h @@ -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; -- cgit v1.2.3