pokeplatinum/include/overlay006/great_marsh_binoculars.h
TheSylphIsIn 03684d7360 Great Marsh lookout documentation
Documents:
 - great_marsh_lookout, which handles the scene launched by interacting with the binoculars in the Great Marsh lookout
 - great_marsh_binoculars, which handles the map/mon sprite view part of that scene
 - some incidental stuff I found while working on those, including the func that loads dual slot encounters and some stuff with the SpecialEncounter struct
2025-01-19 16:06:39 -05:00

29 lines
1022 B
C

#ifndef POKEPLATINUM_GREAT_MARSH_BINOCULARS_H
#define POKEPLATINUM_GREAT_MARSH_BINOCULARS_H
#include "field/field_system_decl.h"
#include "great_marsh_lookout.h"
#include "location.h"
typedef struct BinocularCoords {
u16 x;
u16 z;
} BinocularCoords;
// Data used to control the map view displayed while using the Great Marsh lookout binoculars.
typedef struct GreatMarshBinoculars {
BinocularCoords coordsList[BINOCULARS_CYCLE_COUNT + 1];
Location viewLocation;
FieldSystem *fieldSystem;
int lookoutMapId;
} GreatMarshBinoculars;
int GreatMarshBinoculars_GetMonSpecies(FieldSystem *fieldSystem);
GreatMarshBinoculars *GreatMarshBinoculars_InitData(const int heapId, FieldSystem *fieldSystem);
void GreatMarshBinoculars_FreeData(GreatMarshBinoculars *data);
void GreatMarshBinoculars_SetNextLocationWithCoords(const u8 cycleNum, GreatMarshBinoculars *binocularsData);
Location *GreatMarshBinoculars_GetLocation(GreatMarshBinoculars *binocData);
#endif // POKEPLATINUM_GREAT_MARSH_BINOCULARS_H