public static Entity BuildEnemySprite(EnemyType type, Vector2 loc, MarioEntity mario) { Entity toReturn = null; switch (type) { case EnemyType.WalkingGoomba: toReturn = new GoombaEntity(loc); break; case EnemyType.GreenKoopa: toReturn = new GreenKoopaEntity(loc); break; case EnemyType.RedKoopa: toReturn = new RedKoopaEntity(loc); break; case EnemyType.Piranha: toReturn = new PiranhaEntity(loc); break; case EnemyType.Bowser: toReturn = new BowserEntity(loc, mario); break; } return(toReturn); }
public JumpingBowserState(BowserEntity bowser) : base(bowser) { }
public BowserState(BowserEntity bowser) { Bowser = bowser; }
public StandardBowserState(BowserEntity bowser) : base(bowser) { }
public FallingBowserState(BowserEntity bowser) : base(bowser) { }
public RunningBowserState(BowserEntity bowser) : base(bowser) { }