-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMotionKick.h
More file actions
executable file
·47 lines (40 loc) · 1014 Bytes
/
MotionKick.h
File metadata and controls
executable file
·47 lines (40 loc) · 1014 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
44
45
46
47
#ifndef __MOTIONKICK_H__
#define __MOTIONKICK_H__
#include "WorldModel.h"
#include "Situation.h"
#include "MotionGoto.h"
#include "CommandQuene.h"
#include "Action.h"
#include "Logger.h"
#include "Geometry.h"
class MotionKick
{
public:
MotionKick( WorldModel *wm, Situation *situ, MotionGoto *mtGoto, CommandQuene *cmdQuene, Action *act );
~MotionKick();
private:
WorldModel *mWorldModel;
Situation *mSituation;
CommandQuene *mCmdQuene;
MotionGoto *mGoto;
Action *mAct;
public:
float GetKickDist();
bool Kick();
bool Pass();
bool KickToTar( Vector3f tarVector3f );
private:
bool GotoKickArea( Vector3f tarVector3f );
bool KickTo( Vector3f tarVector3f );
bool SoftKick();
bool PowerKick();
private:
float mKickRadius;
//Angle mKickAngle;
Angle mKickAngleEps;
bool InKickAngle( Vector3f tarVector3f );
bool InKickAngleAllowBack( Vector3f tarVector3f );
bool InKickDist();
bool InKickArea( Vector3f tarVector3f );
};
#endif //__MOTIONKICK_H__