示例#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;
        }