public MarioAndHiddenBlockCollisionResponse(ICollision collision)
 {
     this.firstEntity  = (IMario)collision.GetFirstEntity();
     this.secondEntity = (IBlock)collision.GetSecondEntity();
     this.collision    = collision;
 }
示例#2
0
 public MarioAndBrickBlockWithItemCollisionResponse(ICollision collision)
 {
     this.firstEntity  = (IMario)collision.GetFirstEntity();
     this.secondEntity = (IBlock)collision.GetSecondEntity();
     this.collision    = collision;
 }
示例#3
0
 public MarioAndEnemyCollisionResponse(ICollision collision)
 {
     this.firstEntity  = (IMario)collision.GetFirstEntity();
     this.secondEntity = (IEnemy)collision.GetSecondEntity();
     this.collision    = collision;
 }
示例#4
0
 public MarioAndSuperMushroomCollisionResponse(ICollision collision)
 {
     this.firstEntity  = (IMario)collision.GetFirstEntity();
     this.secondEntity = (IItem)collision.GetSecondEntity();
     this.collision    = collision;
 }