Exemple #1
0
        public EnemyPlayer(string login, Guid id)
        {
            _login    = login;
            ID        = id;
            ColorRect = GetRandomColor();

            stats = new StatisticsPlayer(_login);
        }
Exemple #2
0
        public ClientPlayer(string login, Guid id)
        {
            Size      = 32;
            _login    = login;
            _id       = id;
            ColorRect = GetRandomColor();
            stats     = new StatisticsPlayer(_login);

            PlayerEvents.GetInstance().Eat += EatFood;
        }
Exemple #3
0
 public EnemyPlayer(string login, Guid id, int Size, int Score, Point position)
 {
     _login      = login;
     stats       = new StatisticsPlayer(_login);
     ID          = id;
     this.Size   = Size;
     stats.Score = Score;
     ColorRect   = GetRandomColor();
     Position    = position;
 }
Exemple #4
0
 protected void DeleteStats(StatisticsPlayer stats)
 {
     _statisticsPlayers.Remove(stats);
 }
Exemple #5
0
 protected void AddPlayerStats(StatisticsPlayer statistics)
 {
     _statisticsPlayers.Add(statistics);
 }