protected override void LoadContent() { this.spriteTexture = this.Game.Content.Load <Texture2D>("pacManSingle"); this.Location = new Vector2(300, 300); this.Speed = 100; base.LoadContent(); this.Origin = new Vector2(this.spriteTexture.Width / 2, this.spriteTexture.Height / 2); this.Scale = 1; this.Pacstate = PacState.Stopped; }
public Pacman() { _observers = new List <IPacmanObserver>(); MyState = PacState.Spawning; }
public void Update(PacState p) { Console.WriteLine(string.Format("{0} has been updated pacman state is {1}", this, p)); }
public PacManEventArgs(PacState state) { this.State = state; }
public Pacman() { MyState = PacState.Spawning; }