public GoombaIdleState(Goomba goomba)
 {
     goomba.Sprite           = SpriteFactory.CreateSprite(goomba.HealthState.GetType().Name);
     goomba.Physics.Velocity = Vector2.Zero;
 }
 public GoombaStompedState(Goomba goomba)
 {
     this.goomba = goomba;
 }
Exemple #3
0
 public GoombaLeftMovingState(Goomba goomba)
 {
     this.goomba             = goomba;
     goomba.Sprite           = SpriteFactory.CreateSprite(GetType().Name);
     goomba.Physics.Velocity = PhysicsConsts.LeftMovingGoombaVelocity;
 }
Exemple #4
0
 public GoombaNormalState(Goomba goomba)
 {
     this.goomba = goomba;
 }