Example #1
0
    void UpdateCommand()
    {
        List <Character> OnBoard = Emp.GetCharactersAtLocation(this, OfficerRoles.Navy);

        if (OnBoard.Count > 0)
        {
            if (Captain != null && Captain != OnBoard [0])
            {
                Captain.StepDownCaptain(this);
                AddHistory("Captain Stands Down", string.Format("\n{0}: {1} stands down as Captain.", StrategicClock.GetDate(), Captain.GetNameString()));
            }
            OnBoard [0].AppointCaptain(this);
        }
        if (OnBoard.Count > 1)
        {
            if (Executive != null && Executive != OnBoard [1])
            {
                Executive.StepDownXO(this);
                AddHistory("Exec Stands Down", string.Format("\n{0}: {1} stands down as Exec.", StrategicClock.GetDate(), Executive.GetNameString()));
            }
            OnBoard [1].AppointXO(this);
        }
    }