예제 #1
0
    private string getpvptstring(PVPOpponent p)
    {
        string r = "";

        if (p != null && p.ships != null && p.ships.Length > 0)
        {
            foreach (UserShip us in p.ships)
            {
                r += tools.helper.getstartstring(us.ship.star)
                     + "\t\t" + tools.helper.getshiptype(us.ship.type) + " \t"
                     + us.ship.title + "\t Lv." + us.level + " \r\n";
            }
        }
        return(r);
    }
예제 #2
0
 private string getpvptstring(PVPOpponent p)
 {
     string r = "";
     if (p != null && p.ships != null && p.ships.Length > 0)
     {
         foreach (UserShip us in p.ships)
         {
             r += tools.helper.getstartstring(us.ship.star)
                 + "\t\t" +tools.helper.getshiptype(us.ship.type) + " \t"
                 + us.ship.title + "\t Lv." + us.level + " \r\n";
         }
     }
     return r;
 }
 public void SetOpponent(PVPOpponent oppo)
 {
     this.opponent = oppo;
     this.UpdateUIInfo();
     this.UpdateFlagShip();
 }
 public void SetOpponentAndFleet(PVPOpponent opponent, UserFleet fleet)
 {
     this.selectedOpponent = opponent;
     this.selectedFleet = fleet;
     this.SearchPVP();
 }
예제 #5
0
 public void SetPVPOpponents(PVPOpponent[] opps)
 {
     this.SetLastUpdatePVPTime();
     if ((opps != null) && (opps.Length > 0))
     {
         this._pvpOpponents = opps.ToList<PVPOpponent>();
     }
     else
     {
         this._pvpOpponents = new List<PVPOpponent>();
     }
 }
 public void SetOpponent(PVPOpponent oppo)
 {
     this.opponent = oppo;
     this.UpdateUIs();
 }
 public void SetPVPInfo(PVPOpponent opponent)
 {
     this.currentOpponent = opponent;
 }