Wrapper de sprites de un mismo conjunto. Más...
#include <animation_pack.h>
Métodos públicos | |
| AnimationPack (SDLSprite &up_move_sprite, SDLSprite &down_move_sprite, SDLSprite &left_move_sprite, SDLSprite &right_move_sprite, SDLSprite &up_idle_sprite, SDLSprite &down_idle_sprite, SDLSprite &left_idle_sprite, SDLSprite &right_idle_sprite) | |
| void | render (direction_t direction, movement_status_t status, SDL_Rect dest) |
| int | get_frame_width (direction_t direction) |
| Devuelve el ancho en pixeles de un cuadro de la animacion. Más... | |
| int | get_frame_height (direction_t direction) |
| Devuelve el alto en pixeles de un cuadro de la animacion. Más... | |
| AnimationPack (const AnimationPack &other) | |
| AnimationPack & | operator= (const AnimationPack &other) |
| AnimationPack (AnimationPack &&other) | |
| AnimationPack & | operator= (AnimationPack &&other) |
Wrapper de sprites de un mismo conjunto.
| int AnimationPack::get_frame_height | ( | direction_t | direction | ) |
Devuelve el alto en pixeles de un cuadro de la animacion.
| direction | Direccion para la cual se desea conocer el alto del cuadro. |
| int AnimationPack::get_frame_width | ( | direction_t | direction | ) |
Devuelve el ancho en pixeles de un cuadro de la animacion.
| direction | Direccion para la cual se desea conocer el ancho del cuadro. |