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

Simplified test framework for dungeon object rendering. More...

#include <test_dungeon_objects.h>

Inheritance diagram for yaze::test::TestDungeonObjects:
Collaboration diagram for yaze::test::TestDungeonObjects:

Protected Member Functions

void SetUp () override
 
void TearDown () override
 
absl::Status CreateTestRom ()
 
absl::Status SetupObjectData ()
 
std::vector< uint8_t > CreateObjectSubtypeTable (int base_addr, int count)
 
std::vector< uint8_t > CreateTileData (int base_addr, int tile_count)
 
std::vector< uint8_t > CreateRoomHeader (int room_id)
 

Protected Attributes

std::unique_ptr< MockRomtest_rom_
 

Static Protected Attributes

static constexpr int kTestObjectId = 0x01
 
static constexpr int kTestRoomId = 0x00
 
static constexpr size_t kTestRomSize = 0x100000
 

Detailed Description

Simplified test framework for dungeon object rendering.

This provides a clean, focused testing environment for dungeon object functionality without the complexity of full integration tests.

Definition at line 21 of file test_dungeon_objects.h.

Member Function Documentation

◆ SetUp()

void yaze::test::TestDungeonObjects::SetUp ( )
overrideprotected

◆ TearDown()

void yaze::test::TestDungeonObjects::TearDown ( )
overrideprotected

◆ CreateTestRom()

absl::Status yaze::test::TestDungeonObjects::CreateTestRom ( )
protected

◆ SetupObjectData()

absl::Status yaze::test::TestDungeonObjects::SetupObjectData ( )
protected

◆ CreateObjectSubtypeTable()

std::vector< uint8_t > yaze::test::TestDungeonObjects::CreateObjectSubtypeTable ( int  base_addr,
int  count 
)
protected

◆ CreateTileData()

std::vector< uint8_t > yaze::test::TestDungeonObjects::CreateTileData ( int  base_addr,
int  tile_count 
)
protected

◆ CreateRoomHeader()

std::vector< uint8_t > yaze::test::TestDungeonObjects::CreateRoomHeader ( int  room_id)
protected

Member Data Documentation

◆ test_rom_

std::unique_ptr<MockRom> yaze::test::TestDungeonObjects::test_rom_
protected

Definition at line 35 of file test_dungeon_objects.h.

◆ kTestObjectId

constexpr int yaze::test::TestDungeonObjects::kTestObjectId = 0x01
staticconstexprprotected

Definition at line 38 of file test_dungeon_objects.h.

◆ kTestRoomId

constexpr int yaze::test::TestDungeonObjects::kTestRoomId = 0x00
staticconstexprprotected

Definition at line 39 of file test_dungeon_objects.h.

◆ kTestRomSize

constexpr size_t yaze::test::TestDungeonObjects::kTestRomSize = 0x100000
staticconstexprprotected

Definition at line 40 of file test_dungeon_objects.h.


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