Esempio n. 1
0
        private void OnBoardStep(GameBoardSteppedEventArgs e)
        {
            GameBoardSteppedEventHandler board_changed_handler = BoardStepped;

            if (board_changed_handler != null)
            {
                board_changed_handler(this, e);
            }
        }
Esempio n. 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
        }
Esempio n. 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();
        }
Esempio n. 4
0
 public void Decay(object sender, GameBoardSteppedEventArgs e)
 {
 }
Esempio n. 5
0
 private void _control_BoardStepped(object sender, GameBoardSteppedEventArgs e)
 {
     UpdateGameBoardView(e.Board);
 }