public void OnPlayerLocation(TileArgs e) { if (_tileEventHandler != null) { _tileEventHandler(e); } }
public void LocatePlayer(Player p) { // do some staff regarding the player when it lands on a tile on the board. if (p != null) { TileArgs e = new TileArgs(this, p); OnPlayerLocation(e); } // fire the event }