public Peg(GameBoard gameBoard, int x, int y, PegType pegType) { GameBoard = gameBoard; X = x; Y = y; PegType = pegType; Hit = false; Bonus = 30; }
public ClientPeg(GameBoard gameBoard, int x, int y, PegType pegType) : base(gameBoard, x, y, pegType) { }
public PegData(int x, int y, PegType pegType) { X = x; Y = y; PegType = pegType; }
public override Peg createPeg(int x, int y, PegType pegType) { return(new ClientPeg(GameBoard, x, y, pegType)); }
public virtual Peg createPeg(int x, int y, PegType pegType) { return(new Peg(GameBoard, x, y, pegType)); }