예제 #1
0
 public ExecResults(ExecCommands commands, RobotStatus status, List<Event> events, List<TeamMessage> teamMessages,
                    List<BulletStatus> bulletUpdates, bool halt, bool shouldWait, bool paintEnabled)
 {
     this.commands = commands;
     this.status = status;
     this.events = events;
     this.teamMessages = teamMessages;
     this.bulletUpdates = bulletUpdates;
     this.halt = halt;
     this.shouldWait = shouldWait;
     this.paintEnabled = paintEnabled;
 }
        // -----------
        // battle driven methods
        // -----------

        internal abstract void initializeRound(ExecCommands commands, RobotStatus status);
예제 #3
0
 /// <summary>
 /// This constructor is called internally from the game in order to create
 /// a new <see cref="RobotStatus"/>.
 ///
 /// </summary>
 /// <param name="status">the current states</param>
 public StatusEvent(RobotStatus status)
 {
     this.status = status;
 }
예제 #4
0
 internal override void initializeRound(ExecCommands commands, RobotStatus status)
 {
     base.initializeRound(commands, status);
     isStopped = true;
 }
예제 #5
0
 private void updateStatus(ExecCommands commands, RobotStatus status)
 {
     this.status = status;
     this.commands = commands;
 }
예제 #6
0
        public override void cleanup()
        {
            base.cleanup();

            // Cleanup and remove current wait condition
            waitCondition = null;

            // Cleanup and remove the event manager
            if (eventManager != null)
            {
                eventManager.cleanup();
                eventManager = null;
            }

            graphicsProxy = null;
            execResults = null;
            status = null;
            commands = null;
        }
예제 #7
0
        internal override void initializeRound(ExecCommands commands, RobotStatus status)
        {
            updateStatus(commands, status);
            eventManager.reset();
            var start = new StatusEvent(status);

            eventManager.add(start);
            setSetCallCount(0);
            setGetCallCount(0);
        }
예제 #8
0
 public override void OnStatus(StatusEvent e)
 {
     _robotStatus = e.Status;
 }
예제 #9
0
 public void setStatus(RobotStatus status)
 {
     this.status = status;
 }