yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::app::zelda3::SpriteBuilder Class Reference

#include <sprite_builder.h>

Collaboration diagram for yaze::app::zelda3::SpriteBuilder:

Public Member Functions

SpriteBuilderSetProperty (const std::string &propertyName, const std::string &value)
 
SpriteBuilderSetProperty (const std::string &propertyName, int value)
 
SpriteBuilderSetProperty (const std::string &propertyName, bool value)
 
SpriteBuilderAddAction (const SpriteAction &action)
 
SpriteBuilderSetGlobalAction (const SpriteAction &action)
 
SpriteBuilderAddFunction (const std::string &asmCode)
 
SpriteBuilderAddFunction (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< SpriteActionactions
 
SpriteAction globalAction
 
std::vector< SpriteActionfunctions
 

Detailed Description

Definition at line 93 of file sprite_builder.h.

Member Function Documentation

◆ Create()

SpriteBuilder yaze::app::zelda3::SpriteBuilder::Create ( const std::string & spriteName)
static

Definition at line 10 of file sprite_builder.cc.

Referenced by yaze::test::zelda3::SpriteBuilderTest::SetUp().

◆ SetProperty() [1/3]

SpriteBuilder & yaze::app::zelda3::SpriteBuilder::SetProperty ( const std::string & propertyName,
const std::string & value )

Definition at line 16 of file sprite_builder.cc.

Referenced by yaze::test::zelda3::SpriteBuilderTest::SetUp().

◆ SetProperty() [2/3]

SpriteBuilder & yaze::app::zelda3::SpriteBuilder::SetProperty ( const std::string & propertyName,
int value )

Definition at line 21 of file sprite_builder.cc.

◆ SetProperty() [3/3]

SpriteBuilder & yaze::app::zelda3::SpriteBuilder::SetProperty ( const std::string & propertyName,
bool value )

Definition at line 26 of file sprite_builder.cc.

◆ AddAction()

SpriteBuilder & yaze::app::zelda3::SpriteBuilder::AddAction ( const SpriteAction & action)

Definition at line 31 of file sprite_builder.cc.

Referenced by yaze::test::zelda3::SpriteBuilderTest::SetUp().

◆ SetGlobalAction()

SpriteBuilder & yaze::app::zelda3::SpriteBuilder::SetGlobalAction ( const SpriteAction & action)

Definition at line 35 of file sprite_builder.cc.

Referenced by yaze::test::zelda3::SpriteBuilderTest::SetUp().

◆ AddFunction() [1/2]

SpriteBuilder & yaze::app::zelda3::SpriteBuilder::AddFunction ( const std::string & asmCode)

Definition at line 43 of file sprite_builder.cc.

Referenced by yaze::test::zelda3::SpriteBuilderTest::SetUp().

◆ AddFunction() [2/2]

SpriteBuilder & yaze::app::zelda3::SpriteBuilder::AddFunction ( const SpriteAction & action)

Definition at line 39 of file sprite_builder.cc.

◆ BuildProperties()

std::string yaze::app::zelda3::SpriteBuilder::BuildProperties ( ) const

Definition at line 47 of file sprite_builder.cc.

References yaze::app::zelda3::kSpriteProperties, and properties.

Referenced by Build().

◆ Build()

std::string yaze::app::zelda3::SpriteBuilder::Build ( ) const

Definition at line 58 of file sprite_builder.cc.

References BuildProperties().

Here is the call graph for this function:

Member Data Documentation

◆ name

std::string yaze::app::zelda3::SpriteBuilder::name
private

Definition at line 120 of file sprite_builder.h.

◆ properties

std::array<std::string, 27> yaze::app::zelda3::SpriteBuilder::properties
private

Definition at line 121 of file sprite_builder.h.

Referenced by BuildProperties().

◆ actions

std::vector<SpriteAction> yaze::app::zelda3::SpriteBuilder::actions
private

Definition at line 122 of file sprite_builder.h.

◆ globalAction

SpriteAction yaze::app::zelda3::SpriteBuilder::globalAction
private

Definition at line 123 of file sprite_builder.h.

◆ functions

std::vector<SpriteAction> yaze::app::zelda3::SpriteBuilder::functions
private

Definition at line 124 of file sprite_builder.h.


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