Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members | Tutorials
ITimer.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2010 Nikolaus Gebhardt
2 // This file is part of the "Irrlicht Engine".
3 // For conditions of distribution and use, see copyright notice in irrlicht.h
4 
5 #ifndef __I_TIMER_H_INCLUDED__
6 #define __I_TIMER_H_INCLUDED__
7 
8 #include "IReferenceCounted.h"
9 
10 namespace irr
11 {
12 
14 class ITimer : public virtual IReferenceCounted
15 {
16 public:
17 
19  virtual ~ITimer() {}
20 
22 
26  virtual u32 getRealTime() const = 0;
27 
29 
33  virtual u32 getTime() const = 0;
34 
36  virtual void setTime(u32 time) = 0;
37 
39 
42  virtual void stop() = 0;
43 
45 
48  virtual void start() = 0;
49 
51 
53  virtual void setSpeed(f32 speed = 1.0f) = 0;
54 
56 
58  virtual f32 getSpeed() const = 0;
59 
61  virtual bool isStopped() const = 0;
62 
64 
67  virtual void tick() = 0;
68 };
69 
70 } // end namespace irr
71 
72 #endif
73 

The Irrlicht Engine
The Irrlicht Engine Documentation © 2003-2010 by Nikolaus Gebhardt. Generated on Fri Mar 21 2014 04:40:17 by Doxygen (1.8.1.2)