FIFE
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
FIFE::RenderItem Class Reference

#include <renderitem.h>

+ Collaboration diagram for FIFE::RenderItem:

Public Member Functions

 RenderItem (Instance *parent)
 
int32_t getStaticImageIndexByAngle (uint32_t angle, Instance *instance)
 Returns closest matching static image for given angle. More...
 
void reset ()
 Resets the important values. More...
 

Public Attributes

Instanceinstance
 
DoublePoint3D screenpoint
 
Rect bbox
 
Rect dimensions
 
ImagePtr image
 
int32_t facingAngle
 
uint8_t transparency
 
int32_t currentFrame
 

Private Attributes

int32_t m_cachedStaticImgId
 
int32_t m_cachedStaticImgAngle
 

Detailed Description

Definition at line 41 of file renderitem.h.

Constructor & Destructor Documentation

FIFE::RenderItem::RenderItem ( Instance parent)

Definition at line 40 of file renderitem.cpp.

Member Function Documentation

int32_t FIFE::RenderItem::getStaticImageIndexByAngle ( uint32_t  angle,
Instance instance 
)

Returns closest matching static image for given angle.

Returns
id for static image
See Also
ObjectVisual::getStaticImageIndexByAngle

Definition at line 50 of file renderitem.cpp.

References FIFE::Instance::getObject(), FIFE::Object::getVisual(), m_cachedStaticImgAngle, m_cachedStaticImgId, and FIFE::STATIC_IMAGE_NOT_INITIALIZED.

Referenced by FIFE::LayerCache::updateVisual().

+ Here is the caller graph for this function:

void FIFE::RenderItem::reset ( )

Resets the important values.

Definition at line 66 of file renderitem.cpp.

References currentFrame, dimensions, image, instance, m_cachedStaticImgId, FIFE::SharedPtr< T >::reset(), FIFE::STATIC_IMAGE_NOT_INITIALIZED, and transparency.

Referenced by FIFE::LayerCache::removeInstance().

+ Here is the caller graph for this function:

Member Data Documentation

Rect FIFE::RenderItem::bbox

Definition at line 61 of file renderitem.h.

Referenced by FIFE::LayerCache::updatePosition().

int32_t FIFE::RenderItem::currentFrame

Definition at line 76 of file renderitem.h.

Referenced by reset(), and FIFE::LayerCache::updateVisual().

int32_t FIFE::RenderItem::facingAngle

Definition at line 70 of file renderitem.h.

Referenced by FIFE::LayerCache::updateVisual().

int32_t FIFE::RenderItem::m_cachedStaticImgAngle
private

Definition at line 79 of file renderitem.h.

Referenced by getStaticImageIndexByAngle().

int32_t FIFE::RenderItem::m_cachedStaticImgId
private

Definition at line 78 of file renderitem.h.

Referenced by getStaticImageIndexByAngle(), and reset().

uint8_t FIFE::RenderItem::transparency

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