public void positionChange(int iD, int k, int j) { gameBoard.setBoard(playerContainer[iD].Post.x, playerContainer[iD].Post.y, tilesState.empty); Position newPos = new Position(k, j); positionUpdate(newPos, iD); gameBoard.setBoard(playerContainer[iD].Post.x, playerContainer[iD].Post.y, tilesState.player); //updatePosInNetwork }
public void positionUpdate(Position currentPosition, int k) { playerContainer[k].Post = currentPosition; // Del handler += DelegatedPos; DelegatedPos(currentPosition, k); }
private void setPlayerPos() { int sizeOfPlayerC = playerContainer.Count; for (int i = 0; i < sizeOfPlayerC; i++) { Position newPos = new Position(1, i); positionUpdate(newPos, i); } }
public void DelegatedPos(Position p, int id) { playerCont[id].Post = p; }