public Character_model getOffBoat(string object_name) { for (int i = 0; i < passenger.Length; i++) { if (passenger [i] != null && passenger [i].getName() == object_name) { Character_model temp_character = passenger [i]; passenger [i] = null; return(temp_character); } } return(null); }
public void getOnBoat(Character_model tem_cha) { int index = getEmptyIndex(); passenger [index] = tem_cha; }
public void getOnCoast(Character_model myCharacter) { int index = getEmptyIndex(); passengerPlaner[index] = myCharacter; }