public MarioAndHiddenBlockCollisionResponse(ICollision collision) { this.firstEntity = (IMario)collision.GetFirstEntity(); this.secondEntity = (IBlock)collision.GetSecondEntity(); this.collision = collision; }
public MarioAndBrickBlockWithItemCollisionResponse(ICollision collision) { this.firstEntity = (IMario)collision.GetFirstEntity(); this.secondEntity = (IBlock)collision.GetSecondEntity(); this.collision = collision; }
public MarioAndEnemyCollisionResponse(ICollision collision) { this.firstEntity = (IMario)collision.GetFirstEntity(); this.secondEntity = (IEnemy)collision.GetSecondEntity(); this.collision = collision; }
public MarioAndSuperMushroomCollisionResponse(ICollision collision) { this.firstEntity = (IMario)collision.GetFirstEntity(); this.secondEntity = (IItem)collision.GetSecondEntity(); this.collision = collision; }