mirror of
https://github.com/TomHarte/CLK.git
synced 2024-09-03 15:29:51 +00:00
Specifically by pulling the key action stuff into a purely abstract class [/interface]. Takes the opportunity to unpublish a bunch of machine details.
52 lines
835 B
C++
52 lines
835 B
C++
//
|
|
// Vic20.hpp
|
|
// Clock Signal
|
|
//
|
|
// Created by Thomas Harte on 04/06/2016.
|
|
// Copyright © 2016 Thomas Harte. All rights reserved.
|
|
//
|
|
|
|
#ifndef Vic20_hpp
|
|
#define Vic20_hpp
|
|
|
|
#include "../../../Configurable/Configurable.hpp"
|
|
|
|
namespace Commodore {
|
|
namespace Vic20 {
|
|
|
|
enum MemorySize {
|
|
Default,
|
|
ThreeKB,
|
|
ThirtyTwoKB
|
|
};
|
|
|
|
enum Region {
|
|
American,
|
|
Danish,
|
|
Japanese,
|
|
European,
|
|
Swedish
|
|
};
|
|
|
|
/// @returns The options available for a Vic-20.
|
|
std::vector<std::unique_ptr<Configurable::Option>> get_options();
|
|
|
|
class Machine {
|
|
public:
|
|
virtual ~Machine();
|
|
|
|
/// Creates and returns a Vic-20.
|
|
static Machine *Vic20();
|
|
|
|
/// Sets the memory size of this Vic-20.
|
|
virtual void set_memory_size(MemorySize size) = 0;
|
|
|
|
/// Sets the region of this Vic-20.
|
|
virtual void set_region(Region region) = 0;
|
|
};
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* Vic20_hpp */
|