-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathKick.h
More file actions
executable file
·43 lines (36 loc) · 922 Bytes
/
Kick.h
File metadata and controls
executable file
·43 lines (36 loc) · 922 Bytes
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
#ifndef __KICK_H__
#define __KICK_H__
#include "stdafx.h"
#include "WorldModel.h"
#include "CommandQuene.h"
#include "Situation.h"
#include "Logger.h"
#include "HumanGoto.h"
class Kick
{
public:
Kick( WorldModel *wm, Situation *situ, HumanGoto *hGoto, CommandQuene *cmdQuene, Action *act );
~Kick();
private:
WorldModel *mWorldModel;
Situation *mSituation;
CommandQuene *mCmdQuene;
HumanGoto *mHGoto;
Action *mAct;
public:
bool IsalreadyStand;
bool IsalreadyTurn;
private:
bool BallInShootArea();
bool GetShootViability( Vector3f tarDribbleTo );
bool GetPassViability( Vector3f tarDribbleTo );
bool GetKickAttackViability( Vector3f tarDribbleTo );
bool IsBehindBallKickPos( Vector3f tarKickTo );
public:
bool IsInKickArea( Vector3f tarKickTo );
bool Shoot();
bool Pass();
bool KickAttack();
bool DoKickAction( Vector3f tarKickTo );
};
#endif //__KICK_H__