Example #1
0
 public void AddBattleRectangle(int allyno, BattleRect rect)
 {
     if (battle != null)
     {
         RemoveBattleRectangle(allyno);
         battle.Rectangles.Add(allyno, rect);
         con.SendCommand(0, "ADDSTARTRECT", allyno, rect.Left, rect.Top, rect.Right, rect.Bottom);
     }
 }
		public void AddBattleRectangle(int allyno, BattleRect rect)
		{
			if (battle != null) {
				if (allyno < Spring.MaxAllies && allyno >= 0) {
					RemoveBattleRectangle(allyno);
					battle.Rectangles.Add(allyno, rect);
					con.SendCommand(0, "ADDSTARTRECT", allyno, rect.Left, rect.Top, rect.Right, rect.Bottom);
				}
			}
		}
Example #3
0
			public GrAlly(BattleRect r)
			{
				rect = r;
			}
Example #4
0
 public GrAlly(BattleRect r)
 {
     rect = r;
 }