added: input and its subclasses

This commit is contained in:
2024-07-04 22:47:25 -04:00
parent c67dbcc62a
commit f5b5f180a0
9 changed files with 245 additions and 18 deletions

16
src/console_input.h Normal file
View File

@ -0,0 +1,16 @@
#ifndef __CONSOLE_INPUT_H__
#define __CONSOLE_INPUT_H__
#include <iostream>
#include "input.h"
class console_input final : public input {
private:
std::istream &in;
public:
// This is for cin
console_input(std::istream &cin);
game_command get_command() override;
};
#endif