private void OnBoardStep(GameBoardSteppedEventArgs e) { GameBoardSteppedEventHandler board_changed_handler = BoardStepped; if (board_changed_handler != null) { board_changed_handler(this, e); } }
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 }
public enum Action { None, DropPheremone }; //TODO add more actions here? public void HandleMoveEvent(object sender, GameBoardSteppedEventArgs e) { // get ant position from _gameboard //Move(); }
public void Decay(object sender, GameBoardSteppedEventArgs e) { }
private void _control_BoardStepped(object sender, GameBoardSteppedEventArgs e) { UpdateGameBoardView(e.Board); }