Exemple #1
0
        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;
        }
Exemple #2
0
 public Figure generateFigure()
 {
     return(FigureFactory.createCharacter(name, team));
 }