public
void
DeleteType(string type) {Node cursor = head;
string
typeCheck;
object
obj;
GameEntity
checkForUnique;
for
(; cursor != null; cursor = cursor.Link) GameEntity)obj; if
{
obj = cursor.Data;
checkForUnique = (
typeCheck = checkForUnique.Type;
(typeCheck == type)
{
Node
removedNode = cursor.Link;
null; else if (cursor == null) throw new ArgumentOutOfRangeException();
cursor.Link = removedNode.Link;
removedNode.Link =
size--;
}
{
From the above code, I have a program that allows me to enter
Entities with values type, name and level. Now I have to complete a
function that deletes by entities specified by the user. but the
problem with the above, is that it only delete 1 entities despite
me having alot of entities with the same type name.