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