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 {
|
|
|
|
class CharacterDefinition {
|
|
|
|
public:
|
2017-11-11 11:12:09 +00:00
|
|
|
CharacterDefinition() = default;
|
2017-10-22 20:25:06 +00:00
|
|
|
CharacterDefinition(Ram* ram, uint16_t address);
|
2017-08-29 21:23:32 +00:00
|
|
|
|
2017-10-02 09:12:25 +00:00
|
|
|
std::array<int, 8> get(int row) const;
|
2017-08-29 21:23:32 +00:00
|
|
|
|
2017-09-07 00:15:28 +00:00
|
|
|
private:
|
2017-11-11 11:12:09 +00:00
|
|
|
Ram* m_ram = nullptr;
|
|
|
|
uint16_t m_address = ~0;
|
2017-09-07 00:15:28 +00:00
|
|
|
};
|
|
|
|
}
|
2017-08-29 21:23:32 +00:00
|
|
|
}
|