Exemplo n.º 1
0
 public string ReturnName()
 {
     if (soldier == null)
     {
         return(null);
     }
     return(soldier.Name());
 }
Exemplo n.º 2
0
        public string NameText(BaseUnit soldier, int numberOfSoldiers, SpriteFont font, int endcost)
        {
            string text = soldier.Name();

            text += soldier.Text(font);
            if (soldier is BaseHumanoid || soldier is Beast || soldier is CentaurSoldier || soldier is DryadSoldier)
            {
                text += "Total of Soldiers: " + numberOfSoldiers.ToString() + System.Environment.NewLine +
                        "Cost of Regiment: " + endcost + " pts" + System.Environment.NewLine;
            }
            return(text);
        }