Пример #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);
 }