#include <Anim2D.h>
Inherits MemoryPoolObject, and Snapshot.
Definition at line 133 of file Anim2D.h.
◆ Anim2D()
◆ clearStatus()
clear status bit(s)
Clear status bit
Definition at line 587 of file Anim2D.cpp.
◆ crc()
| virtual void Anim2D::crc |
( |
Xfer * | xfer | ) |
|
|
inlineprotectedvirtual |
run the "light" crc check on this data structure
Implements Snapshot.
Definition at line 171 of file Anim2D.h.
◆ draw() [1/2]
| void Anim2D::draw |
( |
Int | x, |
|
|
Int | y ) |
draw iamge at location using natural width/height
Draw an Anim2D using the natural width and height of the image data
Definition at line 626 of file Anim2D.cpp.
◆ draw() [2/2]
draw image at location using forced width/height
Drawing an Anim2D using a forced width and height
Definition at line 656 of file Anim2D.cpp.
◆ getAlpha()
| Real Anim2D::getAlpha |
( |
void | | ) |
const |
|
inline |
return the current alpha value
Definition at line 154 of file Anim2D.h.
◆ getAnimTemplate()
return our template
Definition at line 163 of file Anim2D.h.
◆ getCurrentFrame()
get our current frame #
Definition at line 146 of file Anim2D.h.
◆ getCurrentFrameHeight()
| UnsignedInt Anim2D::getCurrentFrameHeight |
( |
void | | ) |
const |
return natural height of image in the current frame
Return the "natural" height of the image for our current frame
Definition at line 612 of file Anim2D.cpp.
◆ getCurrentFrameWidth()
| UnsignedInt Anim2D::getCurrentFrameWidth |
( |
void | | ) |
const |
return natural width of image in the current frame
Return the "natural" width of the image for our current frame
Definition at line 598 of file Anim2D.cpp.
◆ getStatus()
return status bits(s)
Definition at line 152 of file Anim2D.h.
◆ loadPostProcess()
| virtual void Anim2D::loadPostProcess |
( |
void | | ) |
|
|
inlineprotectedvirtual |
post process phase for loading save games. All save systems have their xfer run using XferLoad mode, and then all systems each have their post process run
Implements Snapshot.
Definition at line 173 of file Anim2D.h.
◆ randomizeCurrentFrame()
| void Anim2D::randomizeCurrentFrame |
( |
void | | ) |
|
randomize the current frame #
Randomize the current frame
Definition at line 390 of file Anim2D.cpp.
◆ reset()
| void Anim2D::reset |
( |
void | | ) |
|
reset the current frame to the "start"
Reset this animation instance to the "start" of the animation
Definition at line 404 of file Anim2D.cpp.
◆ setAlpha()
| void Anim2D::setAlpha |
( |
Real | alpha | ) |
|
|
inline |
set alpha value
Definition at line 153 of file Anim2D.h.
◆ setCurrentFrame()
set the current frame #
Set the current animation frame
Definition at line 363 of file Anim2D.cpp.
◆ setMaxFrame()
◆ setMinFrame()
◆ setStatus()
set status bit(s)
Set status bit
Definition at line 576 of file Anim2D.cpp.
◆ tryNextFrame()
| void Anim2D::tryNextFrame |
( |
void | | ) |
|
|
protected |
we've just drawn ... try to update our frame if necessary
This is called after we are drawn ... if sufficient time has passed since our last frame update we will update our current frame
Definition at line 441 of file Anim2D.cpp.
◆ xfer()
| void Anim2D::xfer |
( |
Xfer * | xfer | ) |
|
|
protectedvirtual |
◆ Anim2DCollection
◆ m_alpha
◆ m_collectionSystem
system collection (if any) we're registered with
Definition at line 186 of file Anim2D.h.
◆ m_collectionSystemNext
| Anim2D* Anim2D::m_collectionSystemNext |
|
protected |
system instance tracking list
Definition at line 187 of file Anim2D.h.
◆ m_collectionSystemPrev
| Anim2D* Anim2D::m_collectionSystemPrev |
|
protected |
system instance tracking list
Definition at line 188 of file Anim2D.h.
◆ m_currentFrame
current frame of our animation
Definition at line 177 of file Anim2D.h.
◆ m_framesBetweenUpdates
duration between each frame.
Definition at line 183 of file Anim2D.h.
◆ m_lastUpdateFrame
last frame we updated on
Definition at line 178 of file Anim2D.h.
◆ m_maxFrame
max animation frame used inclusively.
Definition at line 182 of file Anim2D.h.
◆ m_minFrame
min animation frame used inclusively.
Definition at line 181 of file Anim2D.h.
◆ m_status
◆ m_template
pointer back to the template that defines this animation
Definition at line 179 of file Anim2D.h.
The documentation for this class was generated from the following files:
- Code/GameEngine/Include/GameClient/Anim2D.h
- Code/GameEngine/Source/GameClient/System/Anim2D.cpp