public AutomaticCommander(string commanderName)
 {
     name = commanderName;
     commanderType = CommanderType.Common;
     //commandUnit = new Unit(new Geometry.Figures.ConvexPolygon());
     currentBattleLosses = 0;
     firstComposition = 0;
 }
 public AutomaticCommander(string commanderName)
 {
     name          = commanderName;
     commanderType = CommanderType.Common;
     //commandUnit = new Unit(new Geometry.Figures.ConvexPolygon());
     currentBattleLosses = 0;
     firstComposition    = 0;
 }
 public AutomaticCommander(string commanderName, CommanderType commanderNewType, Unit unit)
 {
     name = commanderName;
     commanderType = commanderNewType;
     commandUnit = unit;
     currentBattleLosses = 0;
     firstComposition = unit.Properties.ActiveCount();
 }
 public AutomaticCommander(string commanderName, CommanderType commanderNewType, Unit unit)
 {
     name                = commanderName;
     commanderType       = commanderNewType;
     commandUnit         = unit;
     currentBattleLosses = 0;
     firstComposition    = unit.Properties.ActiveCount();
 }
Exemple #5
0
        // Called when turn switches: To reset and begin playing the animation
        public void Initialise()
        {
            Scene_Game scene = (Scene_Game)Scene;

            if (scene.CurrentPlayers.Count == 0)
            {
                return;
            }

            int           player = scene.GetPlayerTurn();
            CommanderType com    = scene.CurrentPlayers.ElementAt(player).Commander;

            Text_Label.Color  = new Color(com.Colour);
            Text_Label.String = String.Format(Label, com.PlayerName.ToUpper());
            Text_Label.CenterOrigin();

            EnabledTime = Game.Instance.Timer;
            State       = TurnSwitchAnimationState.Entry;
        }