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

17
src/curses_input.h Normal file
View File

@ -0,0 +1,17 @@
#ifndef __CURSES_INPUT_H__
#define __CURSES_INPUT_H__
#include <memory>
#include "input.h"
#include "constants.h"
#include "cursor.h"
class curses_input final: public input {
private:
const std::unique_ptr<cursor> &curse;
public:
curses_input(const std::unique_ptr<cursor> &new_curse);
game_command get_command() override;
};
#endif