Beispiel #1
0
 public Player(TeamAI team, double radius, PointF loc, bool isFirstTeam)
     : base(team.getColor(), radius, loc)
 {
     this.ID          = IDCounter++;
     this.team        = team;
     this.isFirstTeam = isFirstTeam;
 }
Beispiel #2
0
        public void showScore(TeamAI first, TeamAI second, Point score)
        {
            Font f = new Font("Arial", 15);

            firstTeamName.Text       = first.getName();
            firstTeamName.ForeColor  = first.getColor();
            firstTeamName.Font       = f;
            secondTeamName.Text      = second.getName();
            secondTeamName.ForeColor = second.getColor();
            secondTeamName.Font      = f;
            scoreBoard.Text          = score.X + " - " + score.Y;
            scoreBoard.Font          = f;
        }