Commit 06d6e35c authored by sanmit's avatar sanmit

Minor edits

parent 2af17db4
...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment