コード例 #1
0
ファイル: Scavenger.cs プロジェクト: pel5xq/InFoxholesGame
 public void addLootToSupply(SniperRifle sr, MachineGun mg, Player player)
 {
     for (int i = 0; i < scavengedLoot.Count; i++)
     {
         scavengedLoot[i].addLoot(sr, mg, player);
     }
     scavengedLoot.Clear();
 }
コード例 #2
0
ファイル: MainGame.cs プロジェクト: pel5xq/InFoxholesGame
 /// <summary>
 /// Allows the game to perform any initialization it needs to before starting to run.
 /// This is where it can query for any required services and load any non-graphic
 /// related content.  Calling base.Initialize will enumerate through any components
 /// and initialize them as well.
 /// </summary>
 protected override void Initialize()
 {
     font = Content.Load<SpriteFont>("Fonts\\Font");
     player = new Player();
     crosshair = new Crosshair();
     sniperRifle = new SniperRifle();
     machineGun = new MachineGun();
     weapon = sniperRifle;
     sniperRifle.isSelected = true;
     machineGun.isSelected = false;
     waveManager = new WaveManager();
     scavengerManager = new ScavengerManager();
     currentScavengeCommand = 0;
     victoryTexture = new AnimatedSprite(Content.Load<Texture2D>("Graphics\\Victory"), 3, 2, animationSpeed);
     base.Initialize();
 }
コード例 #3
0
 public void addLootToSupply(SniperRifle sr, MachineGun mg, Player player)
 {
     getActiveScavenger().addLootToSupply(sr, mg, player);
 }
コード例 #4
0
 public override void addLoot(SniperRifle sniper, MachineGun mg, Player player)
 {
     mg.ammoSupply = mg.ammoSupply + amount;
 }
コード例 #5
0
ファイル: Loot.cs プロジェクト: pel5xq/InFoxholesGame
 public virtual void addLoot(SniperRifle sniper, MachineGun mg, Player player)
 {
 }