17 const std::string& value) {
50 for (
int i = 0; i < 27; ++i) {
51 std::string
property =
"00";
145 const std::string& functionName) {
static SpriteAction Create()
SpriteAction & AddInstruction(const SpriteInstruction &instruction)
SpriteAction & SetNextAction(const std::string &nextActionName)
std::string GetConfiguration() const
SpriteAction & AddCustomInstruction(const std::string &asmCode)
SpriteBuilder & AddFunction(const std::string &asmCode)
std::string BuildProperties() const
SpriteBuilder & SetGlobalAction(const SpriteAction &action)
std::array< std::string, 27 > properties
static SpriteBuilder Create(const std::string &spriteName)
SpriteBuilder & AddAction(const SpriteAction &action)
std::string Build() const
SpriteBuilder & SetProperty(const std::string &propertyName, const std::string &value)
static SpriteInstruction PlayAnimation(int startFrame, int endFrame, int speed)
static SpriteInstruction CheckDamageFromPlayer()
static SpriteInstruction BounceFromTileCollision()
static SpriteInstruction Custom(const std::string &asmCode)
static SpriteInstruction MoveXyz()
static SpriteInstruction SetTimer(int timerId, int value)
void SetConfiguration(const std::string &instruction)
static SpriteInstruction ApplySpeedTowardsPlayer(int speed)
static SpriteInstruction JumpToFunction(const std::string &functionName)
static SpriteInstruction BehaveAsBarrier()
constexpr const char * kSpriteProperties[]