コード例 #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);
 }