def fTwoKickoff(team): """ Kickoff for only two field players """ other_teammate = team.getOtherActiveTeammate() if team.me.playerNumber > other_teammate.playerNumber: team.me.role = PBConstants.CHASER return ["fTwoKickoff"] + (Roles.rChaser(team)) else: team.me.role = PBConstants.DEFENDER return ["fTwoKickoff", PBConstants.DEFENDER] + SubRoles.pKickoffSweeper(team)
def fKickoff(team): """time immediately after kickoff""" if team.me.playerNumber == 2: team.me.role = PBConstants.DEFENDER return ["fKickoff", PBConstants.DEFENDER] + SubRoles.pKickoffSweeper(team) elif team.me.playerNumber == 3: team.me.role = PBConstants.CHASER return ["fKickoff"] + Roles.rChaser(team) elif team.playerNumber == 4: team.me.role = PBConstants.OFFENDER return ["fKickoff", PBConstants.OFFENDER] + SubRoles.pKickoffStriker(team)