Exemple #1
0
 public SnakeBody()
 {
     SnakeBodyParts = new List <SnakeBodyPart>
     {
         SnakeBodyPart.GetDefaultBodyPart()
     };
 }
        private void Initialize()
        {
            ChangeDirectionCommand = new PlayerControlCommnad(ChangeDirection, CanChangeDirection);
            SnakeObj = new SnakeModel(SnakeBodyPart.GetDefaultBodyPart());
            PointObj = new PointModel();

            SnakeTimer = new DispatcherSnakeTime(UpdateBoard);
        }