![]() |
cmdfx 1.0.1
Lightweight game engine for your terminal
|
A C++ wrapper around a CmdFX_SpriteCostumes struct. More...
#include <costumes.hpp>
Public Member Functions | |
| SpriteCostumes (CmdFX_SpriteCostumes *costumes) | |
| SpriteCostumes (std::unique_ptr< Sprite > sprite, int count) | |
| CmdFX_SpriteCostumes * | getSpriteCostumes () |
| int | getCount () |
| void | setCostume (int index, char **text, char ***ansi) |
| void | setCostume (int index, std::vector< std::string > text, std::vector< std::vector< std::string > > ansi) |
| char ** | getCharCostume (int index) |
| char *** | getAnsiCostume (int index) |
| int | switchCostumeTo (int index) |
| int | addCostume (char **costume, char ***ansiCostume) |
| int | addCostume (std::vector< std::string > costume, std::vector< std::vector< std::string > > ansiCostume) |
| int | removeCostume (int index) |
| int | resetCostumes () |
| int | getCurrentCostumeIndex () |
A C++ wrapper around a CmdFX_SpriteCostumes struct.
This class is a wrapper around the CmdFX_SpriteCostumes struct. It provides a constructor and destructor for the sprite costumes, as well as a method to get the sprite costumes. The destructor will free the sprite costumes' memory when the object is destroyed.