Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

CSDisplayParams Class Reference

#include <CSPicture.h>


Detailed Description

Class that holds DisplayValues, that are used by each CSPicture. Thru this class (structure) we have some sort of abstraction where we put something on the screen - or on some world coordinates

Definition at line 29 of file CSPicture.h.

Data Fields

int mXDisplayStart
 X startoffset of surface destination (0,0 of the blitting).

int mYDisplayStart
 Y startoffset of surface destination (0,0 of the blitting).

int mXWorldStart
 X where the display of the "world" starts.

int mYWorldStart
 Y where the display of the "world" starts.

int mXPos
 X actual position of this picture in the world.

int mYPos
 Y actual position of this picture in the world.


Field Documentation

int CSDisplayParams::mXDisplayStart
 

X startoffset of surface destination (0,0 of the blitting).

Definition at line 32 of file CSPicture.h.

Referenced by CSTileMap::addSprite(), AnimationState::AnimationState(), CSPicture::display(), CSSprite::getDisplayXLower(), CSTileMap::setDisplayOffset(), and CSSprite::setDisplayOffset().

int CSDisplayParams::mYDisplayStart
 

Y startoffset of surface destination (0,0 of the blitting).

Definition at line 33 of file CSPicture.h.

Referenced by CSTileMap::addSprite(), AnimationState::AnimationState(), CSPicture::display(), CSSprite::getDisplayYLower(), CSTileMap::setDisplayOffset(), and CSSprite::setDisplayOffset().

int CSDisplayParams::mXWorldStart
 

X where the display of the "world" starts.

Definition at line 34 of file CSPicture.h.

Referenced by AnimationState::AnimationState(), CSPicture::display(), CSSprite::getDisplayXLower(), CSTileMap::setMapPosition(), CSSprite::setWorldPosition(), and CSTileMap::update().

int CSDisplayParams::mYWorldStart
 

Y where the display of the "world" starts.

Definition at line 35 of file CSPicture.h.

Referenced by AnimationState::AnimationState(), CSPicture::display(), CSSprite::getDisplayYLower(), CSTileMap::setMapPosition(), CSSprite::setWorldPosition(), and CSTileMap::update().

int CSDisplayParams::mXPos
 

X actual position of this picture in the world.

Definition at line 36 of file CSPicture.h.

Referenced by CSTileMap::addScaledSprites(), AnimationState::AnimationState(), CSSprite::checkCollision(), CSSprite::checkCollisionPixels(), CSPicture::display(), CSSprite::getCollidingTiles(), CSSprite::getDisplayXLower(), CSSprite::getXPos(), CSAnimation::next(), CSSprite::setPosition(), and CSAnimation::startAnimation().

int CSDisplayParams::mYPos
 

Y actual position of this picture in the world.

Definition at line 37 of file CSPicture.h.

Referenced by CSTileMap::addScaledSprites(), AnimationState::AnimationState(), CSSprite::checkCollision(), CSSprite::checkCollisionPixels(), CSPicture::display(), CSSprite::getCollidingTiles(), CSSprite::getDisplayYLower(), CSSprite::getYPos(), CSAnimation::next(), CSSprite::setPosition(), and CSAnimation::startAnimation().


Generated on Wed Jul 14 00:44:08 2004 for CSLib by doxygen 1.3.6