ScummVM API documentation
Pegasus::TimeBase Class Reference
Inheritance diagram for Pegasus::TimeBase:
Pegasus::AutoDragger Pegasus::DynamicElement Pegasus::IdlerTimeBase Pegasus::SoundTimeBase Pegasus::Animation Pegasus::Blinker Pegasus::Fader Pegasus::PlanetMover Pegasus::RobotShip Pegasus::IdlerAnimation Pegasus::Movie Pegasus::FaderAnimation Pegasus::ScreenFader Pegasus::SoundFader Pegasus::BombTimer Pegasus::EnergyMonitor Pegasus::FrameSequence Pegasus::GlobeCountdown Pegasus::PanoramaScroll Pegasus::RipTimer Pegasus::ShuttleWeapon Pegasus::GlowingMovie Pegasus::Compass Pegasus::ShuttleEnergyMeter Pegasus::Transition

Public Member Functions

 TimeBase (const TimeScale=kDefaultTimeScale)
 
virtual void setTime (const TimeValue, const TimeScale=0)
 
virtual TimeValue getTime (const TimeScale=0)
 
virtual void setScale (const TimeScale scale)
 
virtual TimeScale getScale () const
 
virtual void setRate (const Common::Rational)
 
virtual Common::Rational getRate () const
 
virtual void start ()
 
virtual void stop ()
 
virtual bool isRunning ()
 
virtual void pause ()
 
virtual void resume ()
 
bool isPaused () const
 
virtual void setFlags (const uint32 flags)
 
virtual uint32 getFlags () const
 
virtual void setStart (const TimeValue, const TimeScale=0)
 
virtual TimeValue getStart (const TimeScale=0) const
 
virtual void setStop (const TimeValue, const TimeScale=0)
 
virtual TimeValue getStop (const TimeScale=0) const
 
virtual void setSegment (const TimeValue, const TimeValue, const TimeScale=0)
 
virtual void getSegment (TimeValue &, TimeValue &, const TimeScale=0) const
 
virtual TimeValue getDuration (const TimeScale=0) const
 
virtual void setMasterTimeBase (TimeBase *timeBase)
 
void disposeAllCallBacks ()
 
virtual void checkCallBacks ()
 

Protected Member Functions

void addCallBack (TimeBaseCallBack *)
 
void removeCallBack (TimeBaseCallBack *)
 
virtual void updateTime ()
 

Protected Attributes

TimeBase_master
 
TimeScale _preferredScale
 
TimeBaseCallBack_callBackList
 
Common::Rational _rate
 
Common::Rational _pausedRate
 
bool _paused
 
uint32 _startTime
 
uint32 _startScale
 
uint32 _stopTime
 
uint32 _stopScale
 
uint32 _flags
 
Common::Rational _time
 
uint32 _lastMillis
 
uint32 _pauseStart
 

The documentation for this class was generated from the following file: