YAPOG  0.0.1
Yet Another Pokemon Online Game
DelayedFrameSwitcher.cpp
Go to the documentation of this file.
2 
3 namespace yap
4 {
6  : FrameSwitcher ()
7  , delay_ (delay)
8  {
9  }
10 
12  {
13  }
14 
16  : FrameSwitcher (copy)
17  , delay_ (copy.delay_)
18  , timer_ ()
19  {
20  }
21 
23  {
24  return new DelayedFrameSwitcher (*this);
25  }
26 
28  {
29  timer_.Update (dt);
30 
31  return timer_.DelayIsComplete (delay_, true);
32  }
33 } // namespace yap