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

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

            PlayerEvents.GetInstance().Eat += EatFood;
        }
Example #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;
 }
Example #4
0
 protected void DeleteStats(StatisticsPlayer stats)
 {
     _statisticsPlayers.Remove(stats);
 }
Example #5
0
 protected void AddPlayerStats(StatisticsPlayer statistics)
 {
     _statisticsPlayers.Add(statistics);
 }