private void OnBoardStep(GameBoardSteppedEventArgs e)
        {
            GameBoardSteppedEventHandler board_changed_handler = BoardStepped;

            if (board_changed_handler != null)
            {
                board_changed_handler(this, e);
            }
        }
Beispiel #2
0
        private void parent_BoardStepped(object sender, GameBoardSteppedEventArgs e) //should only be called once (and only once) per step.
        {
            _current_value *= _decayRate;

            if (_current_value >= 0.01)
            {
                //All good, carry on
                //return true;
            }
            //return false;//destroy the pheremone
        }
Beispiel #3
0
        public enum Action { None, DropPheremone }; //TODO add more actions here?

        public void HandleMoveEvent(object sender, GameBoardSteppedEventArgs e)
        {
            // get ant position from _gameboard
            //Move();
        }
Beispiel #4
0
 public void Decay(object sender, GameBoardSteppedEventArgs e)
 {
 }
Beispiel #5
0
 private void _control_BoardStepped(object sender, GameBoardSteppedEventArgs e)
 {
     UpdateGameBoardView(e.Board);
 }