public SpriteSource Map(MapDisplayPiece piece, bool white) { if (white) { if (_whiteMapPieces.ContainsKey(piece)) { return(_whiteMapPieces[piece]); } return(Blank); } if (_blueMapPieces.ContainsKey(piece)) { return(_blueMapPieces[piece]); } return(Blank); }
public void RemovePill() { PillEaten = true; Piece = MapDisplayPiece.Blank; }
public MapCellDetail(Map map, int x, int y, CellType cellType, bool isThroughSpace, MapDisplayPiece mapDisplayPiece) { _map = map; Y = y; X = x; CellType = cellType; Piece = mapDisplayPiece; IsThroughSpace = isThroughSpace; }