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

            SnakeTimer = new DispatcherSnakeTime(UpdateBoard);
        }