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
cfdad29c
Commit
cfdad29c
authored
Jul 16, 2017
by
drallensmith
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'mark_player_better' into randomization - bring in update
parents
8283afa0
d0ae33f4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/agent.cpp
src/agent.cpp
+2
-0
No files found.
src/agent.cpp
View file @
cfdad29c
...
@@ -804,10 +804,12 @@ bool Agent::doMarkPlayer(int unum) {
...
@@ -804,10 +804,12 @@ bool Agent::doMarkPlayer(int unum) {
int
count
=
0
;
int
count
=
0
;
for
(
PlayerPtrCont
::
const_iterator
it
=
wm
.
opponentsFromSelf
().
begin
();
it
!=
o_end
;
++
it
)
{
for
(
PlayerPtrCont
::
const_iterator
it
=
wm
.
opponentsFromSelf
().
begin
();
it
!=
o_end
;
++
it
)
{
if
(
(
*
it
)
->
distFromBall
()
<
5
)
{
if
(
(
*
it
)
->
distFromBall
()
<
5
)
{
if
((
kicker_unum
==
-
1
)
||
(
kicker_unum
!=
unum
))
{
// try to obey action instruction
kicker_pos
=
(
*
it
)
->
pos
();
kicker_pos
=
(
*
it
)
->
pos
();
kicker_unum
=
(
*
it
)
->
unum
();
kicker_unum
=
(
*
it
)
->
unum
();
}
}
}
}
}
for
(
PlayerPtrCont
::
const_iterator
it
=
wm
.
opponentsFromSelf
().
begin
();
it
!=
o_end
;
++
it
)
{
for
(
PlayerPtrCont
::
const_iterator
it
=
wm
.
opponentsFromSelf
().
begin
();
it
!=
o_end
;
++
it
)
{
if
(
(
*
it
)
->
unum
()
==
unum
)
{
if
(
(
*
it
)
->
unum
()
==
unum
)
{
...
...
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