Ejemplo n.º 1
0
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)
Ejemplo n.º 2
0
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)