yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::test::DungeonObjectRenderingTests Class Reference

Tests for ObjectDrawer with realistic dungeon scenarios. More...

Inheritance diagram for yaze::test::DungeonObjectRenderingTests:
Collaboration diagram for yaze::test::DungeonObjectRenderingTests:

Protected Member Functions

void SetUp () override
 
void TearDown () override
 
gfx::PaletteGroup CreateTestPaletteGroup ()
 
zelda3::RoomObject CreateTestObject (int id, int x, int y, int size=0x12, int layer=0)
 
void SetUp () override
 
void TearDown () override
 
gfx::PaletteGroup CreateTestPaletteGroup ()
 
zelda3::RoomObject CreateTestObject (int id, int x, int y, int size=0x12, int layer=0)
 
- Protected Member Functions inherited from yaze::test::TestRomManager::BoundRomTest
void SetUp () override
 
void TearDown () override
 
Romrom ()
 
const Romrom () const
 
std::string GetBoundRomPath () const
 

Protected Attributes

std::unique_ptr< zelda3::ObjectDrawerdrawer_
 
std::unique_ptr< gfx::BackgroundBufferbg1_
 
std::unique_ptr< gfx::BackgroundBufferbg2_
 
gfx::PaletteGroup palette_group_
 

Detailed Description

Tests for ObjectDrawer with realistic dungeon scenarios.

These tests validate that ObjectDrawer correctly renders dungeon objects to BackgroundBuffers using pattern-based drawing routines.

Definition at line 33 of file dungeon_object_rendering_tests.cc.

Member Function Documentation

◆ SetUp() [1/2]

void yaze::test::DungeonObjectRenderingTests::SetUp ( )
inlineoverrideprotected

Definition at line 35 of file dungeon_object_rendering_tests.cc.

References bg1_, bg2_, CreateTestPaletteGroup(), drawer_, palette_group_, and yaze::test::TestRomManager::BoundRomTest::rom().

Here is the call graph for this function:

◆ TearDown() [1/2]

void yaze::test::DungeonObjectRenderingTests::TearDown ( )
inlineoverrideprotected

Definition at line 49 of file dungeon_object_rendering_tests.cc.

References bg1_, bg2_, and drawer_.

◆ CreateTestPaletteGroup() [1/2]

gfx::PaletteGroup yaze::test::DungeonObjectRenderingTests::CreateTestPaletteGroup ( )
inlineprotected

Definition at line 56 of file dungeon_object_rendering_tests.cc.

References yaze::gfx::SnesPalette::AddColor(), and yaze::gfx::PaletteGroup::AddPalette().

Referenced by SetUp().

Here is the call graph for this function:

◆ CreateTestObject() [1/2]

zelda3::RoomObject yaze::test::DungeonObjectRenderingTests::CreateTestObject ( int  id,
int  x,
int  y,
int  size = 0x12,
int  layer = 0 
)
inlineprotected

◆ SetUp() [2/2]

void yaze::test::DungeonObjectRenderingTests::SetUp ( )
inlineoverrideprotected

Definition at line 31 of file dungeon_object_rendering_tests_new.cc.

References bg1_, bg2_, CreateTestPaletteGroup(), drawer_, palette_group_, and yaze::test::TestRomManager::BoundRomTest::rom().

Here is the call graph for this function:

◆ TearDown() [2/2]

void yaze::test::DungeonObjectRenderingTests::TearDown ( )
inlineoverrideprotected

Definition at line 45 of file dungeon_object_rendering_tests_new.cc.

References bg1_, bg2_, and drawer_.

◆ CreateTestPaletteGroup() [2/2]

gfx::PaletteGroup yaze::test::DungeonObjectRenderingTests::CreateTestPaletteGroup ( )
inlineprotected

Definition at line 52 of file dungeon_object_rendering_tests_new.cc.

References yaze::gfx::SnesPalette::AddColor(), and yaze::gfx::PaletteGroup::AddPalette().

Here is the call graph for this function:

◆ CreateTestObject() [2/2]

zelda3::RoomObject yaze::test::DungeonObjectRenderingTests::CreateTestObject ( int  id,
int  x,
int  y,
int  size = 0x12,
int  layer = 0 
)
inlineprotected

Member Data Documentation

◆ drawer_

std::unique_ptr< zelda3::ObjectDrawer > yaze::test::DungeonObjectRenderingTests::drawer_
protected

Definition at line 77 of file dungeon_object_rendering_tests.cc.

Referenced by SetUp(), and TearDown().

◆ bg1_

std::unique_ptr< gfx::BackgroundBuffer > yaze::test::DungeonObjectRenderingTests::bg1_
protected

Definition at line 78 of file dungeon_object_rendering_tests.cc.

Referenced by SetUp(), and TearDown().

◆ bg2_

std::unique_ptr< gfx::BackgroundBuffer > yaze::test::DungeonObjectRenderingTests::bg2_
protected

Definition at line 79 of file dungeon_object_rendering_tests.cc.

Referenced by SetUp(), and TearDown().

◆ palette_group_

gfx::PaletteGroup yaze::test::DungeonObjectRenderingTests::palette_group_
protected

Definition at line 80 of file dungeon_object_rendering_tests.cc.

Referenced by SetUp().


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