yaze 0.2.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::zelda3::SpriteInstruction Class Reference

#include <sprite_builder.h>

Public Member Functions

std::string GetConfiguration () const
 
void SetConfiguration (const std::string &instruction)
 

Static Public Member Functions

static SpriteInstruction PlayAnimation (int startFrame, int endFrame, int speed)
 
static SpriteInstruction ApplySpeedTowardsPlayer (int speed)
 
static SpriteInstruction CheckDamageFromPlayer ()
 
static SpriteInstruction MoveXyz ()
 
static SpriteInstruction BounceFromTileCollision ()
 
static SpriteInstruction SetTimer (int timerId, int value)
 
static SpriteInstruction BehaveAsBarrier ()
 
static SpriteInstruction JumpToFunction (const std::string &functionName)
 
static SpriteInstruction Custom (const std::string &asmCode)
 

Private Attributes

std::string instruction_
 

Detailed Description

Definition at line 11 of file sprite_builder.h.

Member Function Documentation

◆ PlayAnimation()

SpriteInstruction yaze::zelda3::SpriteInstruction::PlayAnimation ( int startFrame,
int endFrame,
int speed )
static

Definition at line 94 of file sprite_builder.cc.

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

◆ ApplySpeedTowardsPlayer()

SpriteInstruction yaze::zelda3::SpriteInstruction::ApplySpeedTowardsPlayer ( int speed)
static

Definition at line 101 of file sprite_builder.cc.

References SetConfiguration().

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

Here is the call graph for this function:

◆ CheckDamageFromPlayer()

SpriteInstruction yaze::zelda3::SpriteInstruction::CheckDamageFromPlayer ( )
static

Definition at line 107 of file sprite_builder.cc.

◆ MoveXyz()

SpriteInstruction yaze::zelda3::SpriteInstruction::MoveXyz ( )
static

Definition at line 113 of file sprite_builder.cc.

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

◆ BounceFromTileCollision()

SpriteInstruction yaze::zelda3::SpriteInstruction::BounceFromTileCollision ( )
static

Definition at line 119 of file sprite_builder.cc.

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

◆ SetTimer()

SpriteInstruction yaze::zelda3::SpriteInstruction::SetTimer ( int timerId,
int value )
static

Definition at line 125 of file sprite_builder.cc.

◆ BehaveAsBarrier()

SpriteInstruction yaze::zelda3::SpriteInstruction::BehaveAsBarrier ( )
static

Definition at line 137 of file sprite_builder.cc.

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

◆ JumpToFunction()

SpriteInstruction yaze::zelda3::SpriteInstruction::JumpToFunction ( const std::string & functionName)
static

Definition at line 143 of file sprite_builder.cc.

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

◆ Custom()

SpriteInstruction yaze::zelda3::SpriteInstruction::Custom ( const std::string & asmCode)
static

Definition at line 131 of file sprite_builder.cc.

◆ GetConfiguration()

std::string yaze::zelda3::SpriteInstruction::GetConfiguration ( ) const
inline

Definition at line 28 of file sprite_builder.h.

References instruction_.

◆ SetConfiguration()

void yaze::zelda3::SpriteInstruction::SetConfiguration ( const std::string & instruction)
inline

Definition at line 29 of file sprite_builder.h.

References instruction_.

Referenced by ApplySpeedTowardsPlayer().

Member Data Documentation

◆ instruction_

std::string yaze::zelda3::SpriteInstruction::instruction_
private

Definition at line 34 of file sprite_builder.h.

Referenced by GetConfiguration(), and SetConfiguration().


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