コード例 #1
0
    public Expedition SetCurrentSelectionAsFormation(EnumFormationName p_name)
    {
        GetFormation(p_name).Clear();
        GetFormation(p_name).AddRange(m_selected);
        m_selected.Clear();
        SelectFormation(p_name);

        return(this);
    }
コード例 #2
0
    public Formation GetFormation(EnumFormationName p_name)
    {
        if (!IsAFormation(p_name))
        {
            return(null);
        }

        return(m_formations[(int)p_name]);
    }
コード例 #3
0
 public void SelectFormation(EnumFormationName p_name)
 {
     if (IsAFormationSelected())
     {
         GetFormation(m_formationSelected).IsSelected = false;
     }
     else
     {
         m_selected.Clear();
     }
     m_formationSelected = p_name;
     if (IsAFormationSelected())
     {
         GetFormation(m_formationSelected).IsSelected = true;
     }
 }
コード例 #4
0
    /********  PROTECTED        ************************/

    /********  PRIVATE          ************************/

    private bool IsAFormation(EnumFormationName p_name)
    {
        return(p_name != EnumFormationName.e_expedition);
    }