Example #1
0
 /// <summary>
 /// Return flag
 /// </summary>
 /// <param name="flag"></param>
 public virtual void ReturnFlag(AbstractFlag flag)
 {
     flag.ResetPosition();
     ScreenController.Instance.ActiveScreen.EnqueueMessage(flag.GetTeam().GetName() + " flag was returned");
 }
Example #2
0
 /// <summary>
 /// Pick up flag
 /// </summary>
 /// <param name="flag"></param>
 public virtual void PickUpFlag(AbstractFlag flag)
 {
     if (this.Flag == null)
     {
         this.Flag = flag;
         CollisionPool.Instance.RemoveBody(flag.GetBody());
         ScreenController.Instance.ActiveScreen.EnqueueMessage(flag.GetTeam().GetName() + " flag was taken");
     }
 }