yaze 0.3.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 97 of file sprite_builder.cc.

◆ ApplySpeedTowardsPlayer()

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

Definition at line 104 of file sprite_builder.cc.

References SetConfiguration().

Here is the call graph for this function:

◆ CheckDamageFromPlayer()

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

Definition at line 110 of file sprite_builder.cc.

◆ MoveXyz()

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

Definition at line 116 of file sprite_builder.cc.

◆ BounceFromTileCollision()

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

Definition at line 122 of file sprite_builder.cc.

◆ SetTimer()

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

Definition at line 128 of file sprite_builder.cc.

◆ BehaveAsBarrier()

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

Definition at line 140 of file sprite_builder.cc.

◆ JumpToFunction()

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

Definition at line 146 of file sprite_builder.cc.

◆ Custom()

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

Definition at line 134 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: