예제 #1
0
 public CollisionDetection(Player player, Game1 game)
 {
     this.game        = game;
     grassResponse    = new GrassCollisionResponse(game);
     tileResponse     = new TileCollisionResponse(game);
     ledgeResponse    = new LedgeCollisionResponse(game);
     buildingResponse = new BuildingCollisionResponse(game);
     enemyResponse    = new EnemyCollisionResponse(game);
     exitResponse     = new ExitCollisionResponse(game);
 }
예제 #2
0
 public CollisionDetection(Player player, Game1 game)
 {
     this.game = game;
     grassResponse = new GrassCollisionResponse(game);
     tileResponse = new TileCollisionResponse(game);
     ledgeResponse = new LedgeCollisionResponse(game);
     buildingResponse = new BuildingCollisionResponse(game);
     enemyResponse = new EnemyCollisionResponse(game);
     exitResponse = new ExitCollisionResponse(game);
 }