ScummVM API documentation
Illusions::Camera Class Reference

Public Member Functions

 Camera (IllusionsEngine *vm)
 
void clearStack ()
 
void set (Common::Point &panPoint, WidthHeight &dimensions)
 
void panCenterObject (uint32 objectId, int16 panSpeed)
 
void panTrackObject (uint32 objectId)
 
void panToPoint (Common::Point pt, int16 panSpeed, uint32 panNotifyId)
 
void panEdgeFollow (uint32 objectId, int16 panSpeed)
 
void stopPan ()
 
void pause ()
 
void unpause ()
 
void pushCameraMode ()
 
void popCameraMode ()
 
void clearCameraModeStack ()
 
void update (uint32 currTime)
 
void setBounds (Common::Point minPt, Common::Point maxPt)
 
void setBoundsToDimensions (WidthHeight &dimensions)
 
Common::Point getCurrentPan ()
 
Common::Point getScreenOffset ()
 
Common::Point getTrackingLimits ()
 
bool isAtPanLimit (int limitNum)
 
void setActiveState (CameraState &state)
 
void getActiveState (CameraState &state)
 
void refreshPan (BackgroundInstance *backgroundItem, WidthHeight &dimensions)
 

Protected Member Functions

void updateMode1 (uint32 currTime)
 
void updateMode2 (uint32 currTime)
 
void updateMode3 (uint32 currTime)
 
bool updatePan (uint32 currTime)
 
bool isPanFinished ()
 
Common::Point getPtOffset (Common::Point pt)
 
void recalcPan (uint32 currTime)
 
bool calcPointFlags (Common::Point &pt, WRect &rect, uint &outFlags)
 
void clipPanTargetPoint ()
 
void init ()
 
void initDuckman ()
 
void initBBDOU ()
 

Protected Attributes

IllusionsEngine_vm
 
CameraState _activeState
 
Common::FixedStack< CameraModeStackItem, 8 > _stack
 
int16 _screenWidth
 
int16 _screenHeight
 
int16 _screenMidX
 
int16 _screenMidY
 
Common::Point _centerObjectTrackingLimits
 
Common::Point _trackObjectTrackingLimits
 
int16 _trackObjectTrackingLimitsPanSpeed
 

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