#include <sprite_builder.h>
Public Member Functions | |
SpriteBuilder & | SetProperty (const std::string &propertyName, const std::string &value) |
SpriteBuilder & | SetProperty (const std::string &propertyName, int value) |
SpriteBuilder & | SetProperty (const std::string &propertyName, bool value) |
SpriteBuilder & | AddAction (const SpriteAction &action) |
SpriteBuilder & | SetGlobalAction (const SpriteAction &action) |
SpriteBuilder & | AddFunction (const std::string &asmCode) |
SpriteBuilder & | AddFunction (const SpriteAction &action) |
std::string | BuildProperties () const |
std::string | Build () const |
Static Public Member Functions | |
static SpriteBuilder | Create (const std::string &spriteName) |
Private Attributes | |
std::string | name |
std::array< std::string, 27 > | properties |
std::vector< SpriteAction > | actions |
SpriteAction | globalAction |
std::vector< SpriteAction > | functions |
Definition at line 92 of file sprite_builder.h.
|
static |
Definition at line 9 of file sprite_builder.cc.
Referenced by yaze::test::SpriteBuilderTest::SetUp().
SpriteBuilder & yaze::zelda3::SpriteBuilder::SetProperty | ( | const std::string & | propertyName, |
const std::string & | value ) |
Definition at line 15 of file sprite_builder.cc.
Referenced by yaze::test::SpriteBuilderTest::SetUp().
SpriteBuilder & yaze::zelda3::SpriteBuilder::SetProperty | ( | const std::string & | propertyName, |
int | value ) |
Definition at line 20 of file sprite_builder.cc.
SpriteBuilder & yaze::zelda3::SpriteBuilder::SetProperty | ( | const std::string & | propertyName, |
bool | value ) |
Definition at line 25 of file sprite_builder.cc.
SpriteBuilder & yaze::zelda3::SpriteBuilder::AddAction | ( | const SpriteAction & | action | ) |
Definition at line 30 of file sprite_builder.cc.
SpriteBuilder & yaze::zelda3::SpriteBuilder::SetGlobalAction | ( | const SpriteAction & | action | ) |
Definition at line 34 of file sprite_builder.cc.
SpriteBuilder & yaze::zelda3::SpriteBuilder::AddFunction | ( | const std::string & | asmCode | ) |
Definition at line 42 of file sprite_builder.cc.
SpriteBuilder & yaze::zelda3::SpriteBuilder::AddFunction | ( | const SpriteAction & | action | ) |
Definition at line 38 of file sprite_builder.cc.
std::string yaze::zelda3::SpriteBuilder::BuildProperties | ( | ) | const |
Definition at line 46 of file sprite_builder.cc.
References yaze::zelda3::kSpriteProperties, and properties.
Referenced by Build().
std::string yaze::zelda3::SpriteBuilder::Build | ( | ) | const |
Definition at line 57 of file sprite_builder.cc.
References BuildProperties().
|
private |
Definition at line 119 of file sprite_builder.h.
|
private |
Definition at line 120 of file sprite_builder.h.
Referenced by BuildProperties().
|
private |
Definition at line 121 of file sprite_builder.h.
|
private |
Definition at line 122 of file sprite_builder.h.
|
private |
Definition at line 123 of file sprite_builder.h.