Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NRE solved -- Issue [Projectiles don't delete themselves]
- Loading branch information
Archelaus
committed
Jan 18, 2012
1 parent
71116e3
commit b861ed8
Showing
15 changed files
with
76 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,41 @@ | |||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Text; | |||
using Microsoft.Xna.Framework; | |||
using Microsoft.Xna.Framework.Audio; | |||
using Microsoft.Xna.Framework.Content; | |||
using Microsoft.Xna.Framework.GamerServices; | |||
using Microsoft.Xna.Framework.Graphics; | |||
using Microsoft.Xna.Framework.Input; | |||
using Microsoft.Xna.Framework.Media; | |||
|
|||
namespace Reax { | |||
class Projectiles { | |||
// FUCK DA POLICE | |||
|
|||
public List<Projectile> itemsList = new List<Projectile>(); | |||
Game1 game; | |||
|
|||
public Projectiles(Game1 game) { | |||
this.game = game; | |||
} | |||
|
|||
public void removeItem(Projectile item) { | |||
itemsList.Remove(item); | |||
} | |||
|
|||
public void addItem(Projectile item) { | |||
itemsList.Add(item); | |||
} | |||
|
|||
public Projectile getByName(String type) { | |||
foreach (Projectile i in itemsList) { | |||
if (i.getProjectileName() == type) { | |||
return i; | |||
} | |||
} | |||
return null; | |||
} | |||
} | |||
} |