예제 #1
0
        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);
        }
예제 #2
0
 public JumpingBowserState(BowserEntity bowser) : base(bowser)
 {
 }
예제 #3
0
 public BowserState(BowserEntity bowser)
 {
     Bowser = bowser;
 }
예제 #4
0
 public StandardBowserState(BowserEntity bowser) : base(bowser)
 {
 }
예제 #5
0
 public FallingBowserState(BowserEntity bowser) : base(bowser)
 {
 }
예제 #6
0
 public RunningBowserState(BowserEntity bowser) : base(bowser)
 {
 }