I'm currently working on a 2D java game. I'm saving each active NPC(each NPC has a class file, extedning an abstract NPC class) from the game in a list(array) and itterating it to display the NPC using one of it's methods. The problem that I've run into is that I can't find a way to delete the NPC from the list when it's HP level is <= 0. I'm sure there is probably a really simple way to do this that someone more experienced would be aware of.
PS. This is my first 2D game XD