-
Notifications
You must be signed in to change notification settings - Fork 0
/
game_commands.h
32 lines (29 loc) · 1001 Bytes
/
game_commands.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
#ifndef DA_GAME_GAME_COMMANDS_H
#define DA_GAME_GAME_COMMANDS_H
#include "terminal.h"
#include "player.h"
#include <string>
namespace da_game {
class GameCommands {
public:
GameCommands(Player *);
static int exit(std::string);
static int go(std::string);
static int fight(std::string);
static int pick_up(std::string);
static int drop(std::string);
static int talk_to(std::string);
static int help(std::string);
static int inventory(std::string);
static int use(std::string);
static int save(std::string);
static int load(std::string);
static void fight(Actor &, Actor &);
private:
static Player * player;
static int stringToInt(std::string);
static Object * get_object(std::vector<Object *> * , int);
static Actor * get_actor(std::vector<Actor *> * , int);
};
}
#endif