yaze 0.2.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
inventory.h
Go to the documentation of this file.
1#ifndef YAZE_APP_ZELDA3_INVENTORY_H
2#define YAZE_APP_ZELDA3_INVENTORY_H
3
4#include "app/gfx/bitmap.h"
6#include "app/gfx/snes_tile.h"
7#include "app/gui/canvas.h"
8#include "app/rom.h"
9
10namespace yaze {
11namespace zelda3 {
12
13constexpr int kInventoryStart = 0x6564A;
14constexpr int kBowItemPos = 0x6F631;
15
16class Inventory {
17 public:
18 absl::Status Create();
19
20 auto &bitmap() { return bitmap_; }
21 auto &tilesheet() { return tilesheets_bmp_; }
22 auto &palette() { return palette_; }
23
24 void LoadRom(Rom *rom) { rom_ = rom; }
25 auto rom() { return rom_; }
26
27 private:
28 absl::Status BuildTileset();
29
30 std::vector<uint8_t> data_;
32
33 std::vector<uint8_t> tilesheets_;
34 std::vector<uint8_t> test_;
37
40 std::vector<gfx::TileInfo> tiles_;
41};
42
43} // namespace zelda3
44} // namespace yaze
45
46#endif // YAZE_APP_ZELDA3_INVENTORY_H
The Rom class is used to load, save, and modify Rom data.
Definition rom.h:58
Represents a bitmap image.
Definition bitmap.h:59
Represents a palette of colors for the Super Nintendo Entertainment System (SNES).
Represents a canvas for drawing and manipulating graphics.
Definition canvas.h:37
absl::Status BuildTileset()
Definition inventory.cc:76
gfx::SnesPalette palette_
Definition inventory.h:36
std::vector< uint8_t > data_
Definition inventory.h:30
gfx::Bitmap tilesheets_bmp_
Definition inventory.h:35
std::vector< uint8_t > test_
Definition inventory.h:34
void LoadRom(Rom *rom)
Definition inventory.h:24
absl::Status Create()
Definition inventory.cc:13
std::vector< gfx::TileInfo > tiles_
Definition inventory.h:40
std::vector< uint8_t > tilesheets_
Definition inventory.h:33
Zelda 3 specific classes and functions.
constexpr int kInventoryStart
Definition inventory.h:13
constexpr int kBowItemPos
Definition inventory.h:14
Main namespace for the application.
Definition controller.cc:18