moved get_direction from *_input.cc to input.h

This commit is contained in:
2024-07-04 23:15:47 -04:00
parent f5b5f180a0
commit e55be26b27
4 changed files with 16 additions and 22 deletions

View File

@ -1,5 +1,6 @@
#ifndef __INPUT_H__
#define __INPUT_H__
#include <string>
#include "constants.h"
class input {
@ -8,4 +9,7 @@ public:
virtual game_command get_command() = 0;
};
game_command get_direction(std::string &str, const char *COMMANDS[],
const int COMMANDS_CNT);
#endif