Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
AnimateWindow Class Reference

#include <AnimateWindowManager.h>

Inherits MemoryPoolObject.

Public Member Functions

 AnimateWindow (void)
 
void setAnimData (ICoord2D startPos, ICoord2D endPos, ICoord2D curPos, ICoord2D restPos, Coord2D vel, UnsignedInt startTime, UnsignedInt endTime)
 
ICoord2D getStartPos (void)
 Get the Start Position 2D coord.
 
ICoord2D getCurPos (void)
 Get the Current Position 2D coord.
 
ICoord2D getEndPos (void)
 Get the End Position 2D coord.
 
ICoord2D getRestPos (void)
 Get the Rest Position 2D coord.
 
GameWindowgetGameWindow (void)
 Get the GameWindow that will be animating.
 
AnimTypes getAnimType (void)
 Get the Animation type.
 
UnsignedInt getDelay (void)
 Get the Time Delay.
 
Coord2D getVel (void)
 Get the Velocity Position 2D coord.
 
UnsignedInt getStartTime (void)
 Get the start time of the time-based anim.
 
UnsignedInt getEndTime (void)
 Get the end time of the time-based anim.
 
void setStartPos (ICoord2D starPos)
 Set the Start Position 2D coord.
 
void setCurPos (ICoord2D curPos)
 Set the Current Position 2D coord.
 
void setEndPos (ICoord2D endPos)
 Set the End Position 2D coord.
 
void setRestPos (ICoord2D restPos)
 Set the Rest Position 2D coord.
 
void setGameWindow (GameWindow *win)
 Set the GameWindow that will be animating.
 
void setAnimType (AnimTypes animType)
 Set the Animation type.
 
void setDelay (UnsignedInt delay)
 Set the Time Delay.
 
void setVel (Coord2D vel)
 Set the Velocity Position 2D coord.
 
void setStartTime (UnsignedInt t)
 Set the start time of the time-based anim.
 
void setEndTime (UnsignedInt t)
 Set the end time of the time-based anim.
 
void setFinished (Bool finished)
 Set if the animation has finished.
 
Bool isFinished (void)
 Return if the animation has finished or not.
 
void setNeedsToFinish (Bool needsToFinish)
 set if we need this animation to finish for the manager to return true
 
Bool needsToFinish (void)
 set if the animation has finished
 
- Public Member Functions inherited from MemoryPoolObject
void deleteInstance ()
 

Additional Inherited Members

- Protected Member Functions inherited from MemoryPoolObject
virtual ~MemoryPoolObject ()
 
void * operator new (size_t s)
 
void operator delete (void *p)
 
virtual MemoryPoolgetObjectMemoryPool ()=0
 

Detailed Description

Definition at line 98 of file AnimateWindowManager.h.

Constructor & Destructor Documentation

◆ AnimateWindow()

AnimateWindow::AnimateWindow ( void )

Definition at line 67 of file AnimateWindowManager.cpp.

Member Function Documentation

◆ getAnimType()

AnimTypes AnimateWindow::getAnimType ( void )
inline

Get the Animation type.

Definition at line 199 of file AnimateWindowManager.h.

◆ getCurPos()

ICoord2D AnimateWindow::getCurPos ( void )
inline

Get the Current Position 2D coord.

Definition at line 195 of file AnimateWindowManager.h.

◆ getDelay()

UnsignedInt AnimateWindow::getDelay ( void )
inline

Get the Time Delay.

Definition at line 200 of file AnimateWindowManager.h.

◆ getEndPos()

ICoord2D AnimateWindow::getEndPos ( void )
inline

Get the End Position 2D coord.

Definition at line 196 of file AnimateWindowManager.h.

◆ getEndTime()

UnsignedInt AnimateWindow::getEndTime ( void )
inline

Get the end time of the time-based anim.

Definition at line 203 of file AnimateWindowManager.h.

◆ getGameWindow()

GameWindow * AnimateWindow::getGameWindow ( void )
inline

Get the GameWindow that will be animating.

Definition at line 198 of file AnimateWindowManager.h.

◆ getRestPos()

ICoord2D AnimateWindow::getRestPos ( void )
inline

Get the Rest Position 2D coord.

Definition at line 197 of file AnimateWindowManager.h.

◆ getStartPos()

ICoord2D AnimateWindow::getStartPos ( void )
inline

Get the Start Position 2D coord.

Definition at line 194 of file AnimateWindowManager.h.

◆ getStartTime()

UnsignedInt AnimateWindow::getStartTime ( void )
inline

Get the start time of the time-based anim.

Definition at line 202 of file AnimateWindowManager.h.

◆ getVel()

Coord2D AnimateWindow::getVel ( void )
inline

Get the Velocity Position 2D coord.

Definition at line 201 of file AnimateWindowManager.h.

◆ isFinished()

Bool AnimateWindow::isFinished ( void )
inline

Return if the animation has finished or not.

Definition at line 217 of file AnimateWindowManager.h.

◆ needsToFinish()

Bool AnimateWindow::needsToFinish ( void )
inline

set if the animation has finished

Definition at line 219 of file AnimateWindowManager.h.

◆ setAnimData()

void AnimateWindow::setAnimData ( ICoord2D startPos,
ICoord2D endPos,
ICoord2D curPos,
ICoord2D restPos,
Coord2D vel,
UnsignedInt startTime,
UnsignedInt endTime )

Definition at line 88 of file AnimateWindowManager.cpp.

◆ setAnimType()

void AnimateWindow::setAnimType ( AnimTypes animType)
inline

Set the Animation type.

Definition at line 210 of file AnimateWindowManager.h.

◆ setCurPos()

void AnimateWindow::setCurPos ( ICoord2D curPos)
inline

Set the Current Position 2D coord.

Definition at line 206 of file AnimateWindowManager.h.

◆ setDelay()

void AnimateWindow::setDelay ( UnsignedInt delay)
inline

Set the Time Delay.

Definition at line 211 of file AnimateWindowManager.h.

◆ setEndPos()

void AnimateWindow::setEndPos ( ICoord2D endPos)
inline

Set the End Position 2D coord.

Definition at line 207 of file AnimateWindowManager.h.

◆ setEndTime()

void AnimateWindow::setEndTime ( UnsignedInt t)
inline

Set the end time of the time-based anim.

Definition at line 214 of file AnimateWindowManager.h.

◆ setFinished()

void AnimateWindow::setFinished ( Bool finished)
inline

Set if the animation has finished.

Definition at line 216 of file AnimateWindowManager.h.

◆ setGameWindow()

void AnimateWindow::setGameWindow ( GameWindow * win)
inline

Set the GameWindow that will be animating.

Definition at line 209 of file AnimateWindowManager.h.

◆ setNeedsToFinish()

void AnimateWindow::setNeedsToFinish ( Bool needsToFinish)
inline

set if we need this animation to finish for the manager to return true

Definition at line 218 of file AnimateWindowManager.h.

◆ setRestPos()

void AnimateWindow::setRestPos ( ICoord2D restPos)
inline

Set the Rest Position 2D coord.

Definition at line 208 of file AnimateWindowManager.h.

◆ setStartPos()

void AnimateWindow::setStartPos ( ICoord2D starPos)
inline

Set the Start Position 2D coord.

Definition at line 205 of file AnimateWindowManager.h.

◆ setStartTime()

void AnimateWindow::setStartTime ( UnsignedInt t)
inline

Set the start time of the time-based anim.

Definition at line 213 of file AnimateWindowManager.h.

◆ setVel()

void AnimateWindow::setVel ( Coord2D vel)
inline

Set the Velocity Position 2D coord.

Definition at line 212 of file AnimateWindowManager.h.


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