Example #1
0
 public CapturedState(OrientedActor actor, OrientedActor cap)
 {
     self          = actor;
     self.captured = true;
     CtF           = self.CtF;
     capturer      = cap;
     if (cap != null)
     {
         if (self._Team == OrientedActor.Team.cyan)
         {
             if (cap._Team != self._Team)
             {
                 self.PrintMessage("Status: I am Captured!");
             }
             else
             {
                 self.PrintMessage("Status: I am being Rescued!");
             }
         }
         self.jailed = false;
     }
     else
     {
         if (self._Team == OrientedActor.Team.cyan)
         {
             self.PrintMessage("Status: I am in Jail");
         }
         self.jailed = true;
         self.CallforHelp();
     }
 }