-
Notifications
You must be signed in to change notification settings - Fork 1
/
UserCommand.h
59 lines (52 loc) · 1.64 KB
/
UserCommand.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// --------------------------------------------------------------------------------------------------------------------------------
// DEMISERL
// Copyright 2014 Corremn
//
// $LastChangedBy$
// $LastChangedDate$
// $LastChangedRevision$
// $HeadURL: $
// --------------------------------------------------------------------------------------------------------------------------------
#if !defined(AFX_USERCOMMAND_H__BC2EA827_3C5A_4DA9_B6FE_038B9255531C__INCLUDED_)
#define AFX_USERCOMMAND_H__BC2EA827_3C5A_4DA9_B6FE_038B9255531C__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class UserCommand
{
public:
int Look(bool *keys,bool show_path=false);
int UnLook();
int Look();
int MoveCommand(int dir);
int FleeCommand(int dir);
int GetDirection(bool *keys);
int Close(bool *keys);
int ClimbStairs(int dir);
int Run();
int InitRun();
int RunDirection(int dir);
int DisplayHelp();
int DisplayHelpAbout();
int HelpCommand(bool *keys);
int HaltRun(int x,int y,int oldx =0,int oldy=0);
int HaltRunFeature(int x,int y,int oldx=0,int oldy=0);
int UseItem(Item*item,int dir);
int UseItem();
int UseItem(bool *keys);
int Debug(bool *keys);
int FireItem(bool itemCheck = true);
int ThrowItem();
int ThrowTarget(eAction action);
int CastSpellAtTarget();
int Flee();
void FleeCommand();
static void Throw(Item * throwItem);
private:
Coord autoTarget();
static Coord look_pos;
static int run_dir;
static MonsterData * lastTarget;
static Item * toThrow;
};
#endif // !defined(AFX_USERCOMMAND_H__BC2EA827_3C5A_4DA9_B6FE_038B9255531C__INCLUDED_)