yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
Overworld Functions

Classes

struct  zelda3_overworld_map
 Overworld map data. More...
 
struct  zelda3_overworld
 Complete overworld data. More...
 

Typedefs

typedef struct zelda3_overworld_map zelda3_overworld_map
 Overworld map data.
 
typedef struct zelda3_overworld zelda3_overworld
 Complete overworld data.
 

Functions

zelda3_overworldyaze_load_overworld (const zelda3_rom *rom)
 Load the overworld from ROM.
 
void yaze_free_overworld (zelda3_overworld *overworld)
 Free overworld data.
 
const zelda3_overworld_mapyaze_get_overworld_map (const zelda3_overworld *overworld, int map_index)
 Get overworld map by index.
 
int yaze_get_overworld_map_count (const zelda3_overworld *overworld)
 Get total number of overworld maps.
 

Detailed Description

Typedef Documentation

◆ zelda3_overworld_map

Overworld map data.

Represents a single screen/area in the overworld, including graphics, palette, music, and sprite information.

◆ zelda3_overworld

Complete overworld data.

Contains all overworld maps and related data for the entire game world.

Function Documentation

◆ yaze_load_overworld()

zelda3_overworld * yaze_load_overworld ( const zelda3_rom rom)

Load the overworld from ROM.

Loads and parses the overworld data from the ROM, including all maps, sprites, and related data structures.

Parameters
romThe ROM to load the overworld from
Returns
Pointer to overworld structure, or NULL on error
Note
Caller must free the returned pointer when done

Definition at line 203 of file yaze.cc.

References zelda3_overworld_map::id, zelda3_rom::impl, zelda3_overworld::impl, and zelda3_overworld::maps.

◆ yaze_free_overworld()

void yaze_free_overworld ( zelda3_overworld overworld)

Free overworld data.

Parameters
overworldPointer to overworld to free

◆ yaze_get_overworld_map()

const zelda3_overworld_map * yaze_get_overworld_map ( const zelda3_overworld overworld,
int  map_index 
)

Get overworld map by index.

Parameters
overworldOverworld data
map_indexMap index (0-159 for most ROMs)
Returns
Pointer to map data, or NULL if invalid index

◆ yaze_get_overworld_map_count()

int yaze_get_overworld_map_count ( const zelda3_overworld overworld)

Get total number of overworld maps.

Parameters
overworldOverworld data
Returns
Number of maps available