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
06d6e35c
Commit
06d6e35c
authored
Jan 28, 2016
by
sanmit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor edits
parent
2af17db4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
bin/teams.py
bin/teams.py
+4
-4
No files found.
bin/teams.py
View file @
06d6e35c
...
@@ -6,7 +6,7 @@ class Team(object):
...
@@ -6,7 +6,7 @@ class Team(object):
""" Abstract class. Handles launching players from 3rd party binaries.
""" Abstract class. Handles launching players from 3rd party binaries.
"""
"""
def
__init__
(
self
,
name
,
binaryPath
,
libDir
,
options
,
offenseOrder
,
defenseOrder
):
def
__init__
(
self
,
name
,
binaryPath
,
libDir
,
options
,
offenseOrder
,
defenseOrder
):
"""
"""
Creates a team
Creates a team
name: name of the team
name: name of the team
...
@@ -15,7 +15,7 @@ class Team(object):
...
@@ -15,7 +15,7 @@ class Team(object):
options: team-specific parameters for executable in string format
options: team-specific parameters for executable in string format
offenseOrder: order to prioritize offensive unums (do not include 0)
offenseOrder: order to prioritize offensive unums (do not include 0)
defenseOrder: order to prioritize defensive unums (do not include 0)
defenseOrder: order to prioritize defensive unums (do not include 0)
"""
"""
self
.
_name
=
name
self
.
_name
=
name
self
.
_binary_path
=
binaryPath
self
.
_binary_path
=
binaryPath
self
.
_lib_dir
=
libDir
self
.
_lib_dir
=
libDir
...
@@ -31,8 +31,6 @@ class Team(object):
...
@@ -31,8 +31,6 @@ class Team(object):
Returns a Popen process object
Returns a Popen process object
"""
"""
print
'Launch npc
%
s'
%
(
self
.
_name
)
player_cmd
=
self
.
_binary_path
player_cmd
=
self
.
_binary_path
player_cmd
+=
'
%
s'
%
(
self
.
_options
)
player_cmd
+=
'
%
s'
%
(
self
.
_options
)
if
launchOpts
!=
None
:
if
launchOpts
!=
None
:
...
@@ -62,6 +60,7 @@ class Agent2d(Team):
...
@@ -62,6 +60,7 @@ class Agent2d(Team):
launchOpts
=
None
launchOpts
=
None
if
player_num
==
1
:
if
player_num
==
1
:
launchOpts
=
'-g'
launchOpts
=
'-g'
print
'Launch npc
%
s-
%
d'
%
(
self
.
_name
,
player_num
)
return
super
(
Agent2d
,
self
)
.
launch_npc
(
launchOpts
)
return
super
(
Agent2d
,
self
)
.
launch_npc
(
launchOpts
)
class
Helios
(
Team
):
class
Helios
(
Team
):
...
@@ -78,6 +77,7 @@ class Helios(Team):
...
@@ -78,6 +77,7 @@ class Helios(Team):
launchOpts
=
None
launchOpts
=
None
if
player_num
==
1
:
if
player_num
==
1
:
launchOpts
=
'-g'
launchOpts
=
'-g'
print
'Launch npc
%
s-
%
d'
%
(
self
.
_name
,
player_num
)
return
super
(
Helios
,
self
)
.
launch_npc
(
launchOpts
)
return
super
(
Helios
,
self
)
.
launch_npc
(
launchOpts
)
...
...
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