Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
Seminar-HFO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
Seminar-HFO
Commits
1a0ffa39
Commit
1a0ffa39
authored
Aug 12, 2017
by
drallensmith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup on bhv_basic_move.cpp
parent
b52d79a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
14 deletions
+8
-14
src/bhv_basic_move.cpp
src/bhv_basic_move.cpp
+8
-13
src/common.hpp
src/common.hpp
+0
-1
No files found.
src/bhv_basic_move.cpp
View file @
1a0ffa39
...
...
@@ -61,7 +61,6 @@ Bhv_BasicMove::execute( PlayerAgent * agent )
dlog
.
addText
(
Logger
::
TEAM
,
__FILE__
": Bhv_BasicMove"
);
bool
success
=
false
;
bool
maybe_success
=
true
;
//-----------------------------------------------
// tackle
...
...
@@ -95,11 +94,6 @@ Bhv_BasicMove::execute( PlayerAgent * agent )
const
double
dash_power
=
Strategy
::
get_normal_dash_power
(
wm
);
const
BallObject
&
ball
=
wm
.
ball
();
if
(
!
ball
.
rposValid
())
{
if
(
!
wm
.
self
().
collidesWithPost
())
{
maybe_success
=
false
;
}
}
double
dist_thr
=
ball
.
distFromSelf
()
*
0.1
;
if
(
dist_thr
<
1.0
)
dist_thr
=
1.0
;
...
...
@@ -113,16 +107,17 @@ Bhv_BasicMove::execute( PlayerAgent * agent )
agent
->
debugClient
().
setTarget
(
target_point
);
agent
->
debugClient
().
addCircle
(
target_point
,
dist_thr
);
if
(
!
Body_GoToPoint
(
target_point
,
dist_thr
,
dash_power
).
execute
(
agent
)
)
{
if
(
!
Body_TurnToBall
().
execute
(
agent
))
{
success
=
false
;
if
(
Body_GoToPoint
(
target_point
,
dist_thr
,
dash_power
).
execute
(
agent
)
||
Body_TurnToBall
().
execute
(
agent
)
)
{
if
(
ball
.
rposValid
()
||
wm
.
self
().
collidesWithPost
())
{
success
=
true
;
}
else
{
success
=
maybe_success
;
success
=
false
;
}
}
else
{
success
=
maybe_success
;
success
=
false
;
}
if
(
wm
.
existKickableOpponent
()
&&
...
...
src/common.hpp
View file @
1a0ffa39
...
...
@@ -5,7 +5,6 @@
#include <stdlib.h>
#include <iostream>
#include <sstream>
#include <vector>
namespace
hfo
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment