<commit_before>﻿namespace ImpactMan.Models.Players
{
    using Microsoft.Xna.Framework;
    using Microsoft.Xna.Framework.Graphics;
    using Microsoft.Xna.Framework.Input;

    public class PacMan : Player
    {
        public PacMan(int x, int y, string assetName, string playerName) 
            : base(x, y, assetName, playerName)
        {
        }

        public override void Update(GameTime gameTime, KeyboardState keyboardState)
        {
            if (keyboardState.IsKeyDown(Keys.Right))
            {
                this.Rectangle = new Rectangle(this.Rectangle.X + 5, this.Rectangle.Y, this.Texture.Width, this.Texture.Height);
            }
        }
    }
}<commit_msg>Trying to set Player moving.<commit_after>﻿namespace ImpactMan.Models.Players
{
    using Microsoft.Xna.Framework;
    using Microsoft.Xna.Framework.Graphics;
    using Microsoft.Xna.Framework.Input;

    public class PacMan : Player
    {
        public PacMan(int x, int y, string assetName, string playerName) 
            : base(x, y, assetName, playerName)
        {
        }

        /// <summary>
        /// Maybe need invoke keyboartstates with Reflection.
        /// This is only test.
        /// </summary>
        /// <param name="gameTime"></param>
        /// <param name="keyboardState"></param>
        public override void Update(GameTime gameTime, KeyboardState keyboardState)
        {
            if (keyboardState.IsKeyDown(Keys.Right))
            {
                this.Rectangle = new Rectangle(this.Rectangle.X + 5, this.Rectangle.Y, this.Texture.Width, this.Texture.Height);
            }

            if (keyboardState.IsKeyDown(Keys.Left))
            {
                this.Rectangle = new Rectangle(this.Rectangle.X - 5, this.Rectangle.Y, this.Texture.Width, this.Texture.Height);
            }

            if (keyboardState.IsKeyDown(Keys.Down))
            {
                this.Rectangle = new Rectangle(this.Rectangle.X, this.Rectangle.Y + 5, this.Texture.Width, this.Texture.Height);
            }

            if (keyboardState.IsKeyDown(Keys.Up))
            {
                this.Rectangle = new Rectangle(this.Rectangle.X, this.Rectangle.Y - 5, this.Texture.Width, this.Texture.Height);
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.10968028419182949, 'fraction_numerical': 0.002220248667850799, 'mean_word_length': 1.9644736842105264, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4659334', 'n_tokens_mistral': 657, 'n_tokens_neox': 634, 'n_words': 129}