public ChessBoardSelectField(int x, int y, Color color, int team_, string name_) { DimX = x; DimY = y; team = team_; name = name_; this.BackColor = color; figure = FigureFactory.createCharacter(name, team); Bitmap picture = new Bitmap(figure.getIconPath()); this.Image = picture; }
public Figure generateFigure() { return(FigureFactory.createCharacter(name, team)); }