parameters: (self, fleet_id: int)
return_statement: return True
docstring: Assign an outpost base fleet to execute the plan.
  
          It is expected that the fleet consists of only that one outpost base.
  
          :return: True on success, False on failure
docstring_summary: Assign an outpost base fleet to execute the plan.
docstring_tokens: Assign an outpost base fleet to execute the plan .
function: def assign_base(self, fleet_id: int) -> bool:
          """
          Assign an outpost base fleet to execute the plan.
  
          It is expected that the fleet consists of only that one outpost base.
  
          :return: True on success, False on failure
          """
          if self.base_assigned:
              warning("Assigned a base to a plan that was already assigned a base to.")
              return False
          # give orders to perform the mission
          target = TargetPlanet(self.target)
          fleet_mission = get_aistate().get_fleet_mission(fleet_id)
          fleet_mission.set_target(MissionType.ORBITAL_OUTPOST, target)
          self.fleet_id = fleet_id
          return True
function_tokens: def assign_base ( self , fleet_id : int ) -> bool : if self . base_assigned : warning ( "Assigned a base to a plan that was already assigned a base to." ) return False # give orders to perform the mission target = TargetPlanet ( self . target ) fleet_mission = get_aistate ( ) . get_fleet_mission ( fleet_id ) fleet_mission . set_target ( MissionType . ORBITAL_OUTPOST , target ) self . fleet_id = fleet_id return True