public Directions(Appearance clothes) { DirectionsRequired = new List <IVector>(); if (clothes.GetDirectionsForTaking) { DirectionsForTaking(); } else if (clothes.Status == ItemStatus.King) { DirectionsForKing(); } else if (clothes.Colour == ColourNames.White) { DirectionsForWhite(); } else { DirectionsForBlack(); } }
public Position(SetOfItems state, ColourNames whoseMove) { this.state = state; this.whoseMove = new Appearance(whoseMove); }
private Item CreateDraught(IVector vector, Appearance clothes) { var square = geometry.ShiftSquare(MainItem.Coordinates, vector); return(new Item(square, clothes)); }
public bool AreEqual(Appearance clothes) { return(clothes.Colour == Colour && clothes.Status == Status); }
public Item(Square square, Appearance clothes) { coordinates = square; this.clothes = clothes; }
public Item(string line) { clothes = new Appearance(line[0]); coordinates = new Square(line.Substring(1, Constants.CHARS_CODE_SQUARE)); }
public Item(int first, int second, ColourNames colour) { coordinates = new Square(first, second); clothes = new Appearance(colour); }