2017-08-29 22:23:32 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstdint>
|
2017-10-02 10:12:25 +01:00
|
|
|
#include <array>
|
2017-08-29 22:23:32 +01:00
|
|
|
|
|
|
|
namespace EightBit {
|
2017-10-02 10:12:25 +01:00
|
|
|
|
2017-10-04 15:37:11 +01:00
|
|
|
class Ram;
|
2017-10-02 10:12:25 +01:00
|
|
|
|
2017-09-07 01:15:28 +01:00
|
|
|
namespace GameBoy {
|
2018-05-02 02:47:47 +01:00
|
|
|
class CharacterDefinition final {
|
2017-09-07 01:15:28 +01:00
|
|
|
public:
|
2021-07-18 14:28:40 +01:00
|
|
|
CharacterDefinition(Ram& vram, uint16_t address) noexcept;
|
2017-08-29 22:23:32 +01:00
|
|
|
|
2021-07-18 14:28:40 +01:00
|
|
|
[[nodiscard]] std::array<int, 8> get(int row) const noexcept;
|
2017-08-29 22:23:32 +01:00
|
|
|
|
2017-09-07 01:15:28 +01:00
|
|
|
private:
|
2018-06-24 20:58:20 +01:00
|
|
|
Ram& m_vram;
|
2017-11-11 11:12:09 +00:00
|
|
|
uint16_t m_address = ~0;
|
2017-09-07 01:15:28 +01:00
|
|
|
};
|
|
|
|
}
|
2017-08-29 22:23:32 +01:00
|
|
|
}
|