-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPartAssembler.h
52 lines (46 loc) · 1.13 KB
/
PartAssembler.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//
// NES-V2: PartAssembler.h
//
// Created by Connor Whalen on 2019-05-12.
//
#ifndef NESV2_PARTASSEMBLER_H
#define NESV2_PARTASSEMBLER_H
#include <string>
#include <vector>
#include "parts/CPU.h"
#include "parts/PPU.h"
#include "parts/APU.h"
#include "parts/Controllers.h"
#include "parts/mappers/Mapper.h"
#include "parts/Display.h"
#include "parts/Speakers.h"
#include "input/Input.h"
#include "RomParser.h"
struct Parts {
CPU* cpu;
PPU* ppu;
APU* apu;
Controllers* controllers;
Mapper* mapper;
Display* display;
Speakers* speakers;
std::vector<Part*>* asVector;
};
class PartAssembler {
public:
Parts* Assemble(
const std::string& cpuType,
const std::string& ppuType,
const std::string& apuType,
const std::string& controllersType,
const std::string& displayType,
const std::string& speakersType,
Input *inputDevice,
const RomParser::RomData &romData,
bool mapperOutput,
bool cpuOutput,
bool ppuOutput,
bool displayOutput
);
};
#endif //NESV2_PARTASSEMBLER_H