Пример #1
0
 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);
 }
Пример #2
0
        public void getOnBoat(Character_model tem_cha)
        {
            int index = getEmptyIndex();

            passenger [index] = tem_cha;
        }
Пример #3
0
        public void getOnCoast(Character_model myCharacter)
        {
            int index = getEmptyIndex();

            passengerPlaner[index] = myCharacter;
        }