added: input and its subclasses
This commit is contained in:
16
src/console_input.h
Normal file
16
src/console_input.h
Normal 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 ∈
|
||||
public:
|
||||
// This is for cin
|
||||
console_input(std::istream &cin);
|
||||
game_command get_command() override;
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user