private void ResetMonster(GameCharacter Character) { Character.CurrentLocation = Character.StartingLocation; Character.ChangeInvincibility(CharacterInvincibility.Invincible); Character.Visible = true; }
public GameCharacter PlayerCollided(GameCharacter Player, GameCharacter Monster1, GameCharacter Monster2, GameCharacter Monster3, GameCharacter Monster4) { GameCharacter g = null; Point ptCollision = Player.CurrentLocation; if( Monster1.HasCollided(Player.CurrentLocation)) { g = Monster1; } else if (Monster2.HasCollided(Player.CurrentLocation)) { g = Monster2; } else if (Monster3.HasCollided(Player.CurrentLocation)) { g = Monster3; } else if (Monster4.HasCollided(Player.CurrentLocation)) { g = Monster4; } return g; }