Game Develop C++ Platform: Animation Class Reference

| Game Develop C++ Platform Platform for developing native games based on OpenGL and SFML with Game Develop

- Main Page
- Modules
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Groups Pages
Public Member Functions | Public Attributes | List of all members
Animation Class Reference
Built-in Sprite Object extension

Class representing an animation of a SpriteObject. More...

`#include <Animation.h>`

## Public Member Functions

const Direction & | GetDirection (unsigned int n) const
Direction & | GetDirectionToModify (unsigned int n)
void | SetDirection (const Direction &direction, unsigned int nb)
void | SetDirectionsNumber (unsigned int nb)
unsigned int | GetDirectionsNumber () const
bool | HasNoDirections () const

## Public Attributes

bool | useMultipleDirections

## Detailed Description

Class representing an animation of a SpriteObject.

See Also
  SpriteObject
  Direction

## Member Function Documentation

const Direction & Animation::GetDirection | ( | unsigned int | n) |  | const

Return the n-th direction

unsigned int Animation::GetDirectionsNumber | ( | ) |  | const

inline

Get direction count

Direction & Animation::GetDirectionToModify | ( | unsigned int | n) |  |

Return the n-th direction

bool Animation::HasNoDirections | ( | ) |  | const

inline

True if there is no direction in the animation

void Animation::SetDirection | ( | const Direction & | direction,
|  | unsigned int | nb
| ) |  |

Change a direction

void Animation::SetDirectionsNumber | ( | unsigned int | nb) |  |

Change direction count

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

- Animation.h
- Animation.cpp