AmbientOverlay Class Reference

#include <ambientoverlay.h>

List of all members.


Detailed Description

Definition at line 28 of file ambientoverlay.h.


Public Member Functions

 AmbientOverlay (Image *img, float parallax, float speedX, float speedY)
 Constructor.
 ~AmbientOverlay ()
void update (int timePassed, float dx, float dy)
void draw (Graphics *graphics, int x, int y)

Private Attributes

ImagemImage
float mParallax
float mPosX
 Current layer X position.
float mPosY
 Current layer Y position.
float mSpeedX
 Scrolling speed in X direction.
float mSpeedY
 Scrolling speed in Y direction.

Constructor & Destructor Documentation

AmbientOverlay::AmbientOverlay ( Image img,
float  parallax,
float  speedX,
float  speedY 
)

Constructor.

Parameters:
img the image this overlay displays
parallax scroll factor based on camera position
speedX scrolling speed in x-direction
speedY scrolling speed in y-direction

Definition at line 28 of file ambientoverlay.cpp.

AmbientOverlay::~AmbientOverlay (  ) 

Definition at line 37 of file ambientoverlay.cpp.


Member Function Documentation

void AmbientOverlay::update ( int  timePassed,
float  dx,
float  dy 
)

Definition at line 42 of file ambientoverlay.cpp.

void AmbientOverlay::draw ( Graphics graphics,
int  x,
int  y 
)

Definition at line 67 of file ambientoverlay.cpp.


Member Data Documentation

Definition at line 49 of file ambientoverlay.h.

float AmbientOverlay::mParallax [private]

Definition at line 50 of file ambientoverlay.h.

float AmbientOverlay::mPosX [private]

Current layer X position.

Definition at line 51 of file ambientoverlay.h.

float AmbientOverlay::mPosY [private]

Current layer Y position.

Definition at line 52 of file ambientoverlay.h.

float AmbientOverlay::mSpeedX [private]

Scrolling speed in X direction.

Definition at line 53 of file ambientoverlay.h.

float AmbientOverlay::mSpeedY [private]

Scrolling speed in Y direction.

Definition at line 54 of file ambientoverlay.h.


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

Generated on Sun Apr 26 17:30:43 2009 for The Mana World by  doxygen 1.5.5