Ejemplo n.º 1
0
            protected override void ProcessState(RobotStateCommand state)
            {
                base.ProcessState(state);
                Flag[] flags = FlagCapture.GetFlags(state);

                carryFlag = false;
                foreach (var flag in flags)
                {
                    if (flag.RobotId == this.ID)
                    {
                        carryFlag = true;
                    }
                }
            }
Ejemplo n.º 2
0
 protected override void ProcessInit(InitAnswerCommand initAnswerCommand)
 {
     base.ProcessInit(initAnswerCommand);
     flagPlaces = FlagCapture.GetFlagPlaces(initAnswerCommand);
 }