1#ifndef YAZE_APP_ZELDA3_OVERWORLD_ITEM_H_
2#define YAZE_APP_ZELDA3_OVERWORLD_ITEM_H_
32 int map_x = room_map_id - ((room_map_id / 8) * 8);
33 int map_y = room_map_id / 8;
35 game_x_ =
static_cast<uint8_t
>(std::abs(x - (map_x * 512)) / 16);
36 game_y_ =
static_cast<uint8_t
>(std::abs(y - (map_y * 512)) / 16);
49 game_x_ =
static_cast<uint8_t
>(std::abs(
x_ - (map_x * 512)) / 16);
50 game_y_ =
static_cast<uint8_t
>(std::abs(
y_ - (map_y * 512)) / 16);
52 std::cout <<
"Item: " << std::hex << std::setw(2) << std::setfill(
'0')
53 <<
static_cast<int>(
id_) <<
" MapId: " << std::hex << std::setw(2)
55 <<
" X: " <<
static_cast<int>(
game_x_)
56 <<
" Y: " <<
static_cast<int>(
game_y_) << std::endl;
enum yaze::zelda3::GameEntity::EntityType entity_type_
void UpdateMapProperties(uint16_t room_map_id) override
OverworldItem(uint8_t id, uint16_t room_map_id, int x, int y, bool bg2)
Zelda 3 specific classes and functions.
constexpr int kOverworldItemsBank
constexpr int kNumOverworldMapItemPointers
constexpr int kOverworldItemsAddress
constexpr int kOverworldItemsEndData
const std::vector< std::string > kSecretItemNames
constexpr int kOverworldItemsPointers
Main namespace for the application.